1 | <?php declare(strict_types=1); |
||
10 | class FirewallPackage implements RegistrationInterface, MiddlewareAwareInterface |
||
11 | { |
||
12 | /** |
||
13 | 1 | * @param Container $c |
|
14 | */ |
||
15 | 1 | public function addToContainer(Container $c) |
|
20 | |||
21 | /** |
||
22 | * @param Stack $stack |
||
23 | * @param Container $container |
||
|
|||
24 | */ |
||
25 | public function addMiddleware(Stack $stack, Container $c): void |
||
30 | } |
||
31 |
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.