diff --git a/src/Service/CodeValidator/YamlValidator.php b/src/Service/CodeValidator/YamlValidator.php index d98183d..890e760 100644 --- a/src/Service/CodeValidator/YamlValidator.php +++ b/src/Service/CodeValidator/YamlValidator.php @@ -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;