Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 16 | public static function withErrorHandlerForXMLReader(callable $callback): mixed |
|
25 | { |
||
26 | 16 | return self::withErrorHandler(static function (int $code, string $message): bool { |
|
27 | 3 | if (strpos($message, 'XMLReader::') !== false) { |
|
28 | 3 | throw new Exception($message, $code); |
|
29 | } |
||
30 | |||
31 | // @codeCoverageIgnoreStart |
||
32 | return false; |
||
33 | // @codeCoverageIgnoreENd |
||
34 | }, $callback); |
||
35 | } |
||
73 |
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