| 1 | <?php |
||
| 5 | class CallbackNode extends AbstractNode |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var \Closure |
||
| 9 | */ |
||
| 10 | protected $callback; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param \Closure $callback |
||
| 14 | * @param bool $allowAddDefault |
||
|
|
|||
| 15 | */ |
||
| 16 | public function __construct(\Closure $callback) |
||
| 20 | |||
| 21 | /** |
||
| 22 | */ |
||
| 23 | public function getDefault() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return \stdClass|array|string|float|int|bool|null |
||
| 30 | */ |
||
| 31 | public function serialize() |
||
| 37 | } |
||
| 38 |
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.