Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
14 | interface ContainerBuilderInterface |
||
15 | { |
||
16 | /** |
||
17 | * Build container class. |
||
18 | * |
||
19 | * @param array $classMetadata Collection of classes value for container |
||
|
|||
20 | * @param string|null $containerClass Container class name |
||
21 | * @param string $namespace Name space |
||
22 | * |
||
23 | * @return string Generated Container class code |
||
24 | * @throws \InvalidArgumentException |
||
25 | */ |
||
26 | public function build(array $classesMetadata, $containerClass = 'Container', $namespace = ''); |
||
27 | |||
28 | } |
||
29 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.