From 05db8e0fef84274c722e54d9872e5a5e2e7d36f0 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 23 Aug 2020 09:58:10 +0200 Subject: [PATCH] account for is_numeric() behavior changes in PHP 8 --- src/Symfony/Component/Yaml/Inline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Yaml/Inline.php b/src/Symfony/Component/Yaml/Inline.php index 341482746e..11efebca44 100644 --- a/src/Symfony/Component/Yaml/Inline.php +++ b/src/Symfony/Component/Yaml/Inline.php @@ -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');