| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | class Types |
||
| 28 | { |
||
| 29 | /** @var array<string,ObjectType> */ |
||
| 30 | private array $types; |
||
| 31 | |||
| 32 | public function __construct(array $types = []) |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | public function get($name) |
||
| 40 | { |
||
| 41 | if (!isset($this->types[$name])) { |
||
| 42 | throw new \InvalidArgumentException(\sprintf('GraphQL object type for %s is not found.', $name)); |
||
| 43 | } |
||
| 44 | |||
| 45 | return $this->types[$name]; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function set(string $name, ObjectType $type): void |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
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