Skip to content

Commit 52cffaa

Browse files
committed
ReferenceTester.php: Use extension's yaml_parse_file
In case of missing YAML library, the error message won't be the same. Before, it pretended the use of `undefined function EzSystems\Raml2Html\Test\yaml_parse_file()`. After, it notifies the use of `undefined function yaml_parse_file()`.
1 parent 17a3691 commit 52cffaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/raml2html/src/Test/ReferenceTester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function parseRoutingFiles($routingFiles): void
198198
user_error("$routingFilePath doesn't exist or is not a file", E_USER_WARNING);
199199
continue;
200200
}
201-
$parsedRoutingFiles[$routingFile] = yaml_parse_file($routingFilePath);
201+
$parsedRoutingFiles[$routingFile] = \yaml_parse_file($routingFilePath);
202202
}
203203

204204
foreach ($parsedRoutingFiles as $routingFile => $parsedRoutingFile) {

0 commit comments

Comments
 (0)