Skip to content
On this page

NoSilencedErrors

Throws an error or warning when any code prefixed with an asperand is encountered.

php
 if (@in_array($array, $needle))
 {
     doSomething();
 }

Scope

Generic.PHP.NoSilencedErrors

Description

Suppressing Errors is not allowed.

Properties

Property NameTypeDefaultAvailable Since
errorbooltrue-

Usage

xml
<rule ref="Generic.PHP.NoSilencedErrors">
    <properties>
        <property name="error" value="false" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.