8000 minor #14669 [PHPUnitBridge] Document the "symfony/deprecation-contra… · githubfromgui/symfony-docs@223828a · GitHub
[go: up one dir, main page]

Skip to content

Commit 223828a

Browse files
committed
minor symfony#14669 [PHPUnitBridge] Document the "symfony/deprecation-contracts" (noniagriconomie)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [PHPUnitBridge] Document the "symfony/deprecation-contracts" When reading this doc, I remembered this package, i think it can be useful to document it here Commits ------- 5238fff [PHPUnitBridge] Document the "symfony/deprecation-contracts"
2 parents e8324ad + 5238fff commit 223828a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/phpunit_bridge.rst

Lines changed: 3 additions & 0 deletions
4D96
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ Deprecation notices can be triggered by using::
165165

166166
@trigger_error('Your deprecation message', E_USER_DEPRECATED);
167167

168+
You can also require the ``symfony/deprecation-contracts`` package that provides
169+
a global ``trigger_deprecation()`` function for this usage.
170+
168171
Without the `@-silencing operator`_, users would need to opt-out from deprecation
169172
notices. Silencing by default swaps this behavior and allows users to opt-in
170173
when they are ready to cope with them (by adding a custom error handler like the

0 commit comments

Comments
 (0)
0