Conditions | 5 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function resolve(ReflectionParameter $parameter, array $providedParameters) |
||
47 | { |
||
48 | $parameterClass = $parameter->getClass(); |
||
49 | |||
50 | if (!$parameterClass instanceof ReflectionClass) { |
||
51 | return; |
||
52 | } |
||
53 | |||
54 | $schema = $this->orm->getSchema(); |
||
55 | |||
56 | foreach ($schema->getRoles() as $role) { |
||
57 | $repository = $schema->define($role, Schema::REPOSITORY); |
||
58 | |||
59 | if ( |
||
60 | $repository !== Select\Repository::class |
||
61 | && $repository === $parameterClass->getName() |
||
62 | ) { |
||
63 | return $this->orm->getRepository($role); |
||
64 | } |
||
68 |
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