Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | interface EventInterface |
||
12 | { |
||
13 | /** |
||
14 | * List broadcast nsp array. |
||
15 | */ |
||
16 | public static function broadcastOn(): array; |
||
17 | |||
18 | /** |
||
19 | * @param array $payload |
||
|
|||
20 | */ |
||
21 | public function setPayload($data): EventInterface; |
||
22 | |||
23 | /** |
||
24 | * Get event name. |
||
25 | */ |
||
26 | public static function name(): string; |
||
27 | } |
||
28 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.