Skip to content

Commit

Permalink
[Yaml] Fixed an exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored Jul 13, 2021
1 parent 8e3c2dd commit 6d747d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ private static function parseTag(string $value, int &$i, int $flags): ?string
$nextOffset += strspn($value, ' ', $nextOffset);

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

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

0 comments on commit 6d747d1

Please sign in to comment.