These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\AdminBundle\Tests\unit; |
||
4 | |||
5 | use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase; |
||
6 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
||
7 | |||
8 | abstract class AbstractPrependableExtensionTestCase extends AbstractExtensionTestCase |
||
9 | { |
||
10 | /** |
||
11 | * Call this method from within your test after you have (optionally) modified the ContainerBuilder for this test |
||
12 | * ($this->container). |
||
13 | * |
||
14 | * @param array $specificConfiguration |
||
0 ignored issues
–
show
|
|||
15 | */ |
||
16 | protected function load(array $configurationValues = array()) |
||
17 | { |
||
18 | $configs = array($this->getMinimalConfiguration(), $configurationValues); |
||
19 | |||
20 | foreach ($this->container->getExtensions() as $extension) { |
||
21 | if ($extension instanceof PrependExtensionInterface) { |
||
22 | $extension->prepend($this->container); |
||
23 | } |
||
24 | $extension->load($configs, $this->container); |
||
25 | } |
||
26 | } |
||
27 | } |
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.