Skip to content

Commit 5238fff

Browse files
noniagriconomieOskarStark
authored andcommitted
[PHPUnitBridge] Document the "symfony/deprecation-contracts"
1 parent e8324ad commit 5238fff

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
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)