| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function getParameterValue(ParameterAttributeInterface $attribute, Context $context): Result |
||
| 22 | { |
||
| 23 | if (!$attribute instanceof RouteArgument) { |
||
| 24 | throw new UnexpectedAttributeException(RouteArgument::class, $attribute); |
||
| 25 | } |
||
| 26 | |||
| 27 | $arguments = $this->currentRoute->getArguments(); |
||
| 28 | |||
| 29 | $name = $attribute->getName() ?? $context->getParameter()->getName(); |
||
| 30 | |||
| 31 | if (array_key_exists($name, $arguments)) { |
||
| 32 | return Result::success($arguments[$name]); |
||
| 33 | } |
||
| 34 | |||
| 35 | return Result::fail(); |
||
| 36 | } |
||
| 38 |
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