Skip to content

Commit 6d747d1

Browse files
[Yaml] Fixed an exception message
1 parent 8e3c2dd commit 6d747d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ private static function parseTag(string $value, int &$i, int $flags): ?string
711711
$nextOffset += strspn($value, ' ', $nextOffset);
712712

713713
if ('' === $tag && (!isset($value[$nextOffset]) || \in_array($value[$nextOffset], [']', '}', ','], true))) {
714-
throw new ParseException(sprintf('Using the unquoted scalar value "!" is not supported. You must quote it.', $value), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
714+
throw new ParseException('Using the unquoted scalar value "!" is not supported. You must quote it.', self::$parsedLineNumber + 1, $value, self::$parsedFilename);
715715
}
716716

717717
// Is followed by a scalar and is a built-in tag

0 commit comments

Comments
 (0)