Setting warnings with
@trigger_error
does not show any warnings, if an custom error handler is installed!
Since php 7.x the error handler should check for error_reporting() and the reported type.
If an @ is added to trigger_error, this disables the error_reporting for this type.
I don't see, why you add an @ before trigger_error... What is the intention to suppress here. I suggest to remove the @, so the warning is visible to the users.
Setting warnings with
@trigger_errordoes not show any warnings, if an custom error handler is installed!
Since php 7.x the error handler should check for error_reporting() and the reported type.
If an @ is added to trigger_error, this disables the error_reporting for this type.
I don't see, why you add an @ before trigger_error... What is the intention to suppress here. I suggest to remove the @, so the warning is visible to the users.