Skip to content

Commit e366a2e

Browse files
[PropertyAccess] fix tests
1 parent e701b47 commit e366a2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Inline.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ private static function evaluateScalar($scalar, $flags, $references = [])
720720
throw new ParseException(sprintf('The constant "%s" is not defined.', $const), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
721721
}
722722
if (self::$exceptionOnInvalidType) {
723-
throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Have you forgotten to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
723+
throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Did you forget to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
724724
}
725725

726726
return null;
@@ -738,7 +738,7 @@ private static function evaluateScalar($scalar, $flags, $references = [])
738738
throw new ParseException(sprintf('The constant "%s" is not defined.', $const), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
739739
}
740740
if (self::$exceptionOnInvalidType) {
741-
throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Have you forgotten to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
741+
throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Did you forget to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
742742
}
743743

744744
return null;

0 commit comments

Comments
 (0)