| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function registerBundles(): iterable |
||
| 12 | { |
||
| 13 | $bundles = require __DIR__ . '/../../vendor/akeneo/pim-community-dev/config/bundles.php'; |
||
| 14 | $bundles += require __DIR__ . '/config/bundles.php'; |
||
| 15 | |||
| 16 | foreach ($bundles as $class => $envs) { |
||
| 17 | if ($envs[$this->environment] ?? $envs['all'] ?? false) { |
||
| 18 | yield new $class(); |
||
|
|
|||
| 19 | } |
||
| 47 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: