From 5238fff27e1b9740a3c85ef47c41915656e00d2a Mon Sep 17 00:00:00 2001 From: Antoine Makdessi Date: Mon, 7 Dec 2020 16:00:29 +0100 Subject: [PATCH] [PHPUnitBridge] Document the "symfony/deprecation-contracts" --- components/phpunit_bridge.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index d1888cd4f6e..284dae4d816 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -165,6 +165,9 @@ Deprecation notices can be triggered by using:: @trigger_error('Your deprecation message', E_USER_DEPRECATED); +You can also require the ``symfony/deprecation-contracts`` package that provides +a global ``trigger_deprecation()`` function for this usage. + Without the `@-silencing operator`_, users would need to opt-out from deprecation notices. Silencing by default swaps this behavior and allows users to opt-in when they are ready to cope with them (by adding a custom error handler like the