Skip to content

Commit

Permalink
Merge pull request #11 from iMRIC/fix/60801
Browse files Browse the repository at this point in the history
[IN:60801] fixed warning with PHP 7: "A non-numeric value encountered…
  • Loading branch information
mcatania-wiley authored Aug 14, 2019
2 parents 3f7a284 + 9ac5795 commit d403002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lib/parser/yaml/sfYamlInline.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d403002

Please sign in to comment.