Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function testLoadBundlesEmpty() |
||
37 | { |
||
38 | $bundles = (new Loader())->load(__DIR__.'/NetteAdapterForSymfonyBundlesSource/bundles.neon'); |
||
39 | $this->extension->setConfig($bundles); |
||
|
|||
40 | $this->extension->loadConfiguration(); |
||
41 | $this->extension->beforeCompile(); |
||
42 | |||
43 | $builder = $this->extension->getContainerBuilder(); |
||
44 | $this->assertGreaterThan(17, $builder->getDefinitions()); |
||
45 | } |
||
46 | } |
||
47 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.