From d0fd51b4181bdf70c03207c5df9c59450638bca5 Mon Sep 17 00:00:00 2001 From: Aymeric Poude Date: Tue, 20 Aug 2019 14:23:12 +0200 Subject: [PATCH] [IN:60801] fixed warning with PHP 7: "A non-numeric value encountered in sfYamlInline.php" --- runtime/lib/parser/yaml/sfYamlInline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lib/parser/yaml/sfYamlInline.php b/runtime/lib/parser/yaml/sfYamlInline.php index b39a945f7..0d98b56c7 100644 --- a/runtime/lib/parser/yaml/sfYamlInline.php +++ b/runtime/lib/parser/yaml/sfYamlInline.php @@ -127,7 +127,7 @@ protected static function dumpArray($value) if ( (1 == count($keys) && '0' == $keys[0]) || - (count($keys) > 1 && array_reduce($keys, create_function('$v,$w', 'return (integer) $v + $w;'), 0) == count($keys) * (count($keys) - 1) / 2)) + (count($keys) > 1 && array_reduce($keys, create_function('$v,$w', 'return (integer) $v + (integer) $w;'), 0) == count($keys) * (count($keys) - 1) / 2)) { $output = array(); foreach ($value as $val) {