| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function testLoadBundlesEmpty() |
||
| 40 | { |
||
| 41 | $bundles = (new Loader())->load(__DIR__ . '/NetteAdapterForSymfonyBundlesSource/bundles.neon'); |
||
| 42 | $this->extension->setConfig($bundles); |
||
|
|
|||
| 43 | $this->extension->loadConfiguration(); |
||
| 44 | $this->extension->beforeCompile(); |
||
| 45 | |||
| 46 | $builder = $this->extension->getContainerBuilder(); |
||
| 47 | $this->assertGreaterThan(17, $builder->getDefinitions()); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
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.