| 1 | <?php |
||
| 8 | class Arguments { |
||
| 9 | /** |
||
| 10 | * Get a closure which will flip preceding optional arguments around. |
||
| 11 | * @example list( $argument1, $argument2 ) = Arguments::flip( $optional_arguments )( $argument1, $argument2 ); |
||
| 12 | * |
||
| 13 | * @param int $optional_arguments |
||
|
|
|||
| 14 | * @return \Closure |
||
| 15 | */ |
||
| 16 | 1 | public static function flip() { |
|
| 31 | } |
||
| 32 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.