| 1 | <?php |
||
| 15 | class DispatchLogger implements DispatcherInterface |
||
| 16 | { |
||
| 17 | /** @var Console */ |
||
| 18 | protected $console; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Dispatcher constructor. |
||
| 22 | * |
||
| 23 | * @param DataProviderManager $dataProviderManager |
||
|
|
|||
| 24 | * @param PluginManager $pluginManager |
||
| 25 | */ |
||
| 26 | public function __construct(Console $console) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Init. |
||
| 33 | */ |
||
| 34 | public function init() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritdoc |
||
| 41 | */ |
||
| 42 | public function dispatch($event, $params) |
||
| 47 | } |
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.