| 1 | <?php |
||
| 10 | class Handler { |
||
| 11 | /** |
||
| 12 | * Actual handler |
||
| 13 | * |
||
| 14 | * @var GenericHandler |
||
| 15 | */ |
||
| 16 | protected $handler = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor |
||
| 20 | * |
||
| 21 | * @param string|\Closure $handler |
||
| 22 | */ |
||
| 23 | 1 | public function __construct( $handler ) { |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get the handler |
||
| 29 | * |
||
| 30 | * @return GenericHandler |
||
| 31 | */ |
||
| 32 | 1 | public function get() { |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Execute the handler |
||
| 38 | * |
||
| 39 | * @param mixed $arguments,... |
||
|
|
|||
| 40 | * @return mixed |
||
| 41 | */ |
||
| 42 | 3 | public function execute() { |
|
| 56 | } |
||
| 57 |
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.