| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function registerBundles(): iterable |
||
| 22 | { |
||
| 23 | $bundles = require __DIR__ . '/../../vendor/akeneo/pim-community-dev/config/bundles.php'; |
||
| 24 | $bundles += require __DIR__ . '/config/bundles.php'; |
||
| 25 | |||
| 26 | foreach ($bundles as $class => $envs) { |
||
| 27 | if ($envs[$this->environment] ?? $envs['all'] ?? false) { |
||
| 28 | yield new $class(); |
||
|
|
|||
| 29 | } |
||
| 53 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: