Skip to content

Commit

Permalink
Fix php 7.1 warning (#12)
Browse files Browse the repository at this point in the history
`Warning: A non-numeric value encountered`

http://php.net/manual/en/migration71.other-changes.php
  • Loading branch information
nicoschoenmaker authored and Hidde Boomsma committed May 11, 2017
1 parent 5aaf4e5 commit 644156c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yaml/sfYamlInline.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static protected 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 ((int) $v) + ((int) $w);'), 0) == count($keys) * (count($keys) - 1) / 2))
{
$output = array();
foreach ($value as $val)
Expand Down

0 comments on commit 644156c

Please sign in to comment.