Hi,
Recently there was a deprecation introduced in v31 in PHP
The deprecation itself has been set to trigger an error with
zend_error(E_USER_WARNING,
"getLabel is deprecated. Use isRequired or isRepeated instead.\n");
However, in PHP there is a dedicated error level E_USER_DEPRECATED as documented here
.
My question is, was it intended to use E_USER_WARNING instead of E_USER_DEPRECATED? If no, what would be best way to make sure we use the latter from now on in future code updates?
The main issue I faced was that warning was automatically converted to exception by my PHP error handling logic (symfony framework in this case), however deprecations are just logged and the app can continue.
Thanks,
Bartosz