Skip to content

Commit adc73d5

Browse files
Merge branch '5.4' into 6.0
* 5.4: Use PHP_OS_FAMILY if possible Fix tests Fix typos in error messages Fix minor typos [WebProfilerBundle] Fix the values of some CSS properties [Messenger] Fixed an exception message [Yaml] Fixed an exception message Fix ctype_digit deprecation Add a Special Case for Translating Choices in en_US_POSIX
2 parents 22486cc + 86f6be8 commit adc73d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Inline.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ public static function dump(mixed $value, int $flags = 0): string
157157
return 'true';
158158
case false === $value:
159159
return 'false';
160-
case ctype_digit($value):
161-
return \is_string($value) ? "'$value'" : (int) $value;
160+
case \is_int($value):
161+
return $value;
162162
case is_numeric($value) && false === strpos($value, "\f") && false === strpos($value, "\n") && false === strpos($value, "\r") && false === strpos($value, "\t") && false === strpos($value, "\v"):
163163
$locale = setlocale(\LC_NUMERIC, 0);
164164
if (false !== $locale) {
@@ -684,7 +684,7 @@ private static function parseTag(string $value, int &$i, int $flags): ?string
684684
$nextOffset += strspn($value, ' ', $nextOffset);
685685

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

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

0 commit comments

Comments
 (0)