FunctionDeclarations
Table of Contents
Classes
- ForbiddenParameterShadowSuperGlobalsSniff
- Detect the use of superglobals as parameters for functions, support for which was removed in PHP 5.4.
- ForbiddenParametersWithSameNameSniff
- Functions can not have multiple parameters with the same name since PHP 7.0.
- ForbiddenToStringParametersSniff
- As of PHP 5.3, the __toString() magic method can no longer accept arguments.
- ForbiddenVariableNamesInClosureUseSniff
- Detect variable names forbidden to be used in closure `use` statements.
- NewClosureSniff
- Detect closures and verify that the features used are supported.
- NewExceptionsFromToStringSniff
- As of PHP 7.4, throwing exceptions from a `__toString()` method is allowed.
- NewNullableTypesSniff
- Nullable parameter type declarations and return types are available since PHP 7.1.
- NewParamTypeDeclarationsSniff
- Detect and verify the use of parameter type declarations in function declarations.
- NewReturnTypeDeclarationsSniff
- Detect and verify the use of return type declarations in function declarations.
- NonStaticMagicMethodsSniff
- Verifies the use of the correct visibility and static properties of magic methods.