Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 968ffcf

Browse files
committed
account for is_numeric() behavior changes in PHP 8
1 parent 079faef commit 968ffcf

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
@@ -210,7 +210,7 @@ public static function dump($value, $flags = 0)
210210
return 'false';
211211
case ctype_digit($value):
212212
return \is_string($value) ? "'$value'" : (int) $value;
213-
case is_numeric($value):
213+
case is_numeric($value) && false === strpos($value, "\n"):
214214
$locale = setlocale(LC_NUMERIC, 0);
215215
if (false !== $locale) {
216216
setlocale(LC_NUMERIC, 'C');

0 commit comments

Comments
 (0)