Skip to content

Conversation

stephenstack
Copy link

Hi πŸ‘‹ β€” while testing with PHP 8.3, I noticed a deprecation warning around the ZabbixApiException constructor.

Throwable $previous = null

is now considered implicitly nullable in PHP 8.3+, which triggers a warning.
This PR updates the constructor to:
public function __construct(string $message, int $code = 0, ?\Throwable $previous = null)

Why

Removes the PHP 8.3 deprecation warning
Keeps the package future-proof for PHP 8.4
No behavioral change, fully backwards compatible

Notes
This is a small change, but it should make life a bit easier for anyone running newer PHP versions. Thanks for maintaining this project β€” looking forward to chatting more at Zabbix Summit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants