Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public static function schemaValidate(DOMDocument $document): DOMDocument |
||
34 | { |
||
35 | $schemaFile = self::getSchemaFile(); |
||
36 | $result = $document->schemaValidate($schemaFile); |
||
37 | |||
38 | if ($result === false) { |
||
39 | $msgs = []; |
||
40 | foreach (libxml_get_errors() as $err) { |
||
41 | $msgs[] = trim($err->message) . ' on line ' . $err->line; |
||
42 | } |
||
43 | |||
44 | throw new SchemaViolationException(sprintf( |
||
45 | "XML schema validation errors:\n - %s", |
||
46 | implode("\n - ", array_unique($msgs)), |
||
47 | )); |
||
48 | } |
||
49 | |||
50 | return $document; |
||
51 | } |
||
69 |
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