| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | private function objectToString($object): string |
||
| 19 | { |
||
| 20 | $ro = new \ReflectionObject($object); |
||
| 21 | |||
| 22 | if ($ro->hasMethod('toString')) { |
||
| 23 | return $object->toString(); |
||
| 24 | } |
||
| 25 | |||
| 26 | if ($ro->hasMethod('__toString')) { |
||
| 27 | return (string) $object; |
||
| 28 | } |
||
| 29 | |||
| 30 | return spl_object_hash($object); |
||
| 31 | } |
||
| 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