Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class Alias extends AbstractDefinition implements DefinitionInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $alias; |
||
29 | |||
30 | /** |
||
31 | * Alias needs a name and the definition name to look for in the container |
||
32 | * |
||
33 | * @param string $alias |
||
34 | */ |
||
35 | public function __construct($alias) |
||
36 | { |
||
37 | $alias = str_replace('@', '', $alias); |
||
38 | |||
39 | $this->alias = $alias; |
||
40 | } |
||
41 | 2 | ||
42 | /** |
||
43 | 2 | * Resolves the definition into a scalar or object |
|
44 | * |
||
45 | * @return mixed |
||
46 | * |
||
47 | * @throws NotFoundException No entry was found for alias |
||
48 | * in current container. |
||
49 | * @throws ContainerNotSetException If no container is set before |
||
50 | * calling resolve(). |
||
51 | */ |
||
52 | public function resolve(): mixed |
||
62 | } |
||
63 | } |
||
64 |
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