| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ToBoolean extends Collection implements |
||
| 16 | StrategyInterface |
||
| 17 | { |
||
| 18 | #[Override] |
||
| 19 | public function extract(mixed $value, object|null $object = null): bool|null |
||
| 20 | { |
||
| 21 | if ($value === null) { |
||
| 22 | // @codeCoverageIgnoreStart |
||
| 23 | return $value; |
||
| 24 | // @codeCoverageIgnoreEnd |
||
| 25 | } |
||
| 26 | |||
| 27 | return (bool) $value; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param mixed[]|null $data |
||
| 32 | * |
||
| 33 | * @codeCoverageIgnore |
||
| 34 | */ |
||
| 35 | #[Override] |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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