| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | #[Override] |
||
| 37 | public function __invoke(string $varName, array $query, InjectorInterface $injector) |
||
| 38 | 4 | { |
|
| 39 | $superGlobals = static::$globals ?: $GLOBALS; |
||
| 40 | 4 | /** @var SuperGlobalsMap $superGlobals */ |
|
| 41 | 4 | $webContextParam = $this->webContextParam; |
|
| 42 | 4 | assert(is_string($webContextParam::GLOBAL_KEY)); |
|
| 43 | /** @psalm-suppress MixedArrayOffset */ |
||
| 44 | 4 | $phpWebContext = $superGlobals[$webContextParam::GLOBAL_KEY]; |
|
| 45 | 2 | ||
| 46 | return $phpWebContext[$this->webContextParam->key] ?? ($this->defaultParam)($varName, $query, $injector); |
||
| 47 | } |
||
| 55 |
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