Skip to content

Commit e714f03

Browse files
authored
Use the same Parser flags as in Symfony (#49)
1 parent da3c6bf commit e714f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/CodeValidator/YamlValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function validate(CodeNode $node, IssueCollection $issues): void
1919
// Allow us to use "..." as a placeholder
2020
$contents = str_replace('...', 'null', $node->getValue());
2121
try {
22-
Yaml::parse($contents, Yaml::PARSE_CUSTOM_TAGS);
22+
Yaml::parse($contents, Yaml::PARSE_CONSTANT | Yaml::PARSE_CUSTOM_TAGS);
2323
} catch (ParseException $e) {
2424
if ('Duplicate key' === substr($e->getMessage(), 0, 13)) {
2525
return;

0 commit comments

Comments
 (0)