How to ignore deprecation notices
mainIf you wish to completely ignore deprecation notices triggered by this package, you can declare an empty function in your application. Note that this is not recommended.
function trigger_deprecation() {}repository·main·Indexed 24 days ago
https://github.com/symfony/deprecation-contractsProvides a standardized, global trigger_deprecation() function for triggering silenced deprecation notices that can be caught and logged by error handlers.
If you wish to completely ignore deprecation notices triggered by this package, you can declare an empty function in your application. Note that this is not recommended.
function trigger_deprecation() {}The trigger_deprecation() function provides a standardized way to trigger silenced deprecation notices. It is designed to work with custom PHP error handlers (like the one in the Symfony ErrorHandler component) to catch and log deprecations in both development and production environments.
To use the function, you must provide at least three arguments:
You can provide additional arguments which will be injected into the message using printf() formatting.
trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');