Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function __construct(AbstractModule $module, string $classDir) |
||
26 | { |
||
27 | $module->install(new AssistedModule); |
||
28 | $this->container = $module->getContainer(); |
||
29 | $this->classDir = $classDir; |
||
30 | $this->container->weaveAspects(new Compiler($this->classDir)); |
||
31 | |||
32 | // builtin injection |
||
33 | (new Bind($this->container, InjectorInterface::class))->toInstance(new Injector($module)); |
||
34 | } |
||
35 | |||
64 |
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.