Fix ctype_digit deprecation
This commit is contained in:
parent
7253299169
commit
5c57324117
@ -161,8 +161,8 @@ class Inline
|
||||
return 'true';
|
||||
case false === $value:
|
||||
return 'false';
|
||||
case ctype_digit($value):
|
||||
return \is_string($value) ? "'$value'" : (int) $value;
|
||||
case \is_int($value):
|
||||
return $value;
|
||||
case is_numeric($value) && false === strpos($value, "\f") && false === strpos($value, "\n") && false === strpos($value, "\r") && false === strpos($value, "\t") && false === strpos($value, "\v"):
|
||||
$locale = setlocale(\LC_NUMERIC, 0);
|
||||
if (false !== $locale) {
|
||||
|
Reference in New Issue
Block a user