account for is_numeric() behavior changes in PHP 8
This commit is contained in:
parent
86310deed2
commit
05db8e0fef
@ -210,7 +210,7 @@ class Inline
|
||||
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');
|
||||
|
Reference in New Issue
Block a user