UnusedFunctionParameterSniff::$magicMethods
A list of all PHP magic methods with fixed method signatures.
Note: `__construct()` and `__invoke()` are excluded on purpose as their method signature is not fixed.
Type: array
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Standards/ Generic/ Sniffs/ CodeAnalysis/ UnusedFunctionParameterSniff.php, line 41
Class
Namespace
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysisCode
private $magicMethods = [
'__destruct' => true,
'__call' => true,
'__callstatic' => true,
'__get' => true,
'__set' => true,
'__isset' => true,
'__unset' => true,
'__sleep' => true,
'__wakeup' => true,
'__serialize' => true,
'__unserialize' => true,
'__tostring' => true,
'__set_state' => true,
'__clone' => true,
'__debuginfo' => true,
];