Skip to content

Commit

Permalink
Use the same Parser flags as in Symfony (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppelisset authored Aug 20, 2023
1 parent da3c6bf commit e714f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/CodeValidator/YamlValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function validate(CodeNode $node, IssueCollection $issues): void
// Allow us to use "..." as a placeholder
$contents = str_replace('...', 'null', $node->getValue());
try {
Yaml::parse($contents, Yaml::PARSE_CUSTOM_TAGS);
Yaml::parse($contents, Yaml::PARSE_CONSTANT | Yaml::PARSE_CUSTOM_TAGS);
} catch (ParseException $e) {
if ('Duplicate key' === substr($e->getMessage(), 0, 13)) {
return;
Expand Down

0 comments on commit e714f03

Please sign in to comment.