Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | abstract class TypeBuilder |
||
21 | { |
||
22 | /** |
||
23 | * @var TypeDefinition |
||
24 | */ |
||
25 | protected $reflection; |
||
26 | |||
27 | /** |
||
28 | * @var Registry |
||
29 | */ |
||
30 | private $registry; |
||
31 | |||
32 | /** |
||
33 | * TypeBuilder constructor. |
||
34 | * @param TypeDefinition $type |
||
35 | * @param Registry $registry |
||
36 | */ |
||
37 | public function __construct(TypeDefinition $type, Registry $registry) |
||
38 | { |
||
39 | $this->reflection = $type; |
||
40 | $this->registry = $registry; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return Registry |
||
45 | */ |
||
46 | protected function getRegistry(): Registry |
||
47 | { |
||
48 | return $this->registry; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param string $service |
||
53 | * @return mixed|object |
||
54 | */ |
||
55 | protected function resolve(string $service) |
||
56 | { |
||
57 | return $this->registry->getContainer()->make($service); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param TypeDefinition $type |
||
62 | * @return Type|Directive |
||
63 | * @throws \InvalidArgumentException |
||
64 | */ |
||
65 | protected function load(TypeDefinition $type) |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return mixed|Type |
||
72 | */ |
||
73 | abstract public function build(); |
||
74 | } |
||
75 |
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