Skip to content

Commit

Permalink
Merge branch '3.4' into 4.4
Browse files Browse the repository at this point in the history
* 3.4:
  account for is_numeric() behavior changes in PHP 8
  fix expected exception messages on PHP 8
  • Loading branch information
fabpot committed Aug 23, 2020
2 parents e06e21e + 968ffcf commit 2061f4a
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 @@ -161,7 +161,7 @@ public static function dump($value, int $flags = 0): string
return 'false';
case ctype_digit($value):
return \is_string($value) ? "'$value'" : (int) $value;
case is_numeric($value):
case is_numeric($value) && false === strpos($value, "\n"):
$locale = setlocale(LC_NUMERIC, 0);
if (false !== $locale) {
setlocale(LC_NUMERIC, 'C');
Expand Down

0 comments on commit 2061f4a

Please sign in to comment.