Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class ContainerRegistry |
||
12 | { |
||
13 | /** @var AdvancedNavigationInterface[] */ |
||
14 | private $containers = []; |
||
15 | |||
16 | public function addContainer(AdvancedNavigationInterface $container) |
||
17 | { |
||
18 | $containerName = get_class($container); |
||
19 | if (array_key_exists($containerName, $this->containers)) { |
||
20 | throw new ContainerAlreadyRegisteredException($containerName); |
||
|
|||
21 | } |
||
22 | |||
23 | $this->containers[$containerName] = $container; |
||
24 | } |
||
25 | |||
26 | public function getContainer(string $containerName): AdvancedNavigationInterface |
||
33 | } |
||
34 | } |
||
35 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths