| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | interface TaskQueueInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Add callbacks or \Closure into task queueing stack. |
||
| 11 | * |
||
| 12 | * @param string $task The callback or Closure. |
||
|
|
|||
| 13 | * @param array $taskArgs The callback or Closure arguments. |
||
| 14 | * @return TaskQueueInterface |
||
| 15 | */ |
||
| 16 | public function add(InvokerInterface $invoker, $taskArgs = []); |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Invoke all of pending task in the task queueing stack. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function run(); |
||
| 24 | } |
||
| 25 |
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.