src/Fixer/LanguageConstruct/ErrorSuppressionFixer.php
public function getDefinition()
    {
        return new FixerDefinition(
            'Error control operator should be added to deprecation notices and/or removed from other cases.',
            [
                new CodeSample("<?php\ntrigger_error('Warning.', E_USER_DEPRECATED);\n"),
                new CodeSample(
                    "<?php\n@mkdir(\$dir);\n@unlink(\$path);\n",
                    [self::OPTION_NOISE_REMAINING_USAGES => true]
                ),
                new CodeSample(
                    "<?php\n@mkdir(\$dir);\n@unlink(\$path);\n",
                    [
                        self::OPTION_NOISE_REMAINING_USAGES => true,
                        self::OPTION_NOISE_REMAINING_USAGES_EXCLUDE => ['unlink'],
                    ]
                ),
            ],
            null,
            'Risky because adding/removing `@` might cause changes to code behaviour or if `trigger_error` function is overridden.'
        );
    }
public function getDefinition()
    {
        return new FixerDefinition(
            'Error control operator should be added to deprecation notices and/or removed from other cases.',
            [
                new CodeSample("<?php\ntrigger_error('Warning.', E_USER_DEPRECATED);\n"),
                new CodeSample(
                    "<?php\n@mkdir(\$dir);\n@unlink(\$path);\n",
                    [self::OPTION_NOISE_REMAINING_USAGES => true]
                ),
                new CodeSample(
                    "<?php\n@mkdir(\$dir);\n@unlink(\$path);\n",
                    [
                        self::OPTION_NOISE_REMAINING_USAGES => true,
                        self::OPTION_NOISE_REMAINING_USAGES_EXCLUDE => ['unlink'],
                    ]
                ),
            ],
            null,
            'Risky because adding/removing `@` might cause changes to code behaviour or if `trigger_error` function is overridden.'
        );
    }
public function getDefinition ( ) { return new FixerDefinition ( 'Error control operator should be added to deprecation notices and/or removed from other cases.' , [ new CodeSample ( "<?php\ntrigger_error('Warning.', E_USER_DEPRECATED);\n" ) , new CodeSample ( "<?php\n@mkdir(\$dir);\n@unlink(\$path);\n" , [ self :: OPTION_NOISE_REMAINING_USAGES => true ] ) , new CodeSample ( "<?php\n@mkdir(\$dir);\n@unlink(\$path);\n" , [ self :: OPTION_NOISE_REMAINING_USAGES => true , self :: OPTION_NOISE_REMAINING_USAGES_EXCLUDE => [ 'unlink' ] , ] ) , ] , null , 'Risky because adding/removing `@` might cause changes to code behaviour or if `trigger_error` function is overridden.' ) ; }
{@inheritdoc}
{