Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 619 Bytes

silenced_deprecation_error.rst

File metadata and controls

28 lines (19 loc) · 619 Bytes

Rule silenced_deprecation_error

Warning

This rule is deprecated and will be removed on next major version.

You should use error_suppression instead.

Ensures deprecation notices are silenced.

Warning

Using this rule is risky.

Silencing of deprecation errors might cause changes to code behaviour.

Examples

Example #1

--- Original
+++ New
@@ -1,2 +1,2 @@
 <?php
-trigger_error('Warning.', E_USER_DEPRECATED);
+@trigger_error('Warning.', E_USER_DEPRECATED);