| Total Complexity | 9 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 8 | class NullObject implements TypeUtilInterface |
||
| 9 | { |
||
| 10 | public function fromNative($input) |
||
| 11 | { |
||
| 12 | return null; |
||
| 13 | } |
||
| 14 | |||
| 15 | public function toNative($input) |
||
| 16 | { |
||
| 17 | return null; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function fromMissingValue() |
||
| 21 | { |
||
| 22 | return null; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function supports($input): bool |
||
| 26 | { |
||
| 27 | if ($input instanceof ValueObjectInterface && $input->toNative() === null) { |
||
| 28 | return true; |
||
| 29 | } |
||
| 30 | return $input === null; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function supportsToNative($input): bool |
||
| 36 | } |
||
| 37 | |||
| 38 | public function supportsFromNative($input): bool |
||
| 41 | } |
||
| 42 | |||
| 43 | public function __toString() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
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