In PHP 8.2 and later, setting a value to an undeclared class property is deprecated, and emits a deprecation notice the first time the property is set during the lifetime of the application execution.
This line below emits the deprecation notice:
|
$resp->error = Error::from_json_obj($data->error); |
Ideally, classes should declare the dynamic properties in the class to avoid the deprecation notice
In PHP 8.2 and later, setting a value to an undeclared class property is deprecated, and emits a deprecation notice the first time the property is set during the lifetime of the application execution.
This line below emits the deprecation notice:
phpzabbix/src/JSONRPC/Response.php
Line 25 in 2168a83
Ideally, classes should declare the dynamic properties in the class to avoid the deprecation notice