Skip to content

Commit

Permalink
Is the name $value the problem?
Browse files Browse the repository at this point in the history
PHP7.2 is doing strange things when variables are named `value`. Perhaps
a different name will fare better.
  • Loading branch information
markstory committed Sep 27, 2017
1 parent 5b84009 commit 613698b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Collection/Iterator/MapReduce.php
Expand Up @@ -174,8 +174,8 @@ public function emit($value, $key = null)
protected function _execute()
{
$mapper = $this->_mapper;
foreach ($this->_data as $key => $value) {
$mapper($value, $key, $this);
foreach ($this->_data as $key => $val) {
$mapper($val, $key, $this);
}
$this->_data = null;

Expand Down

0 comments on commit 613698b

Please sign in to comment.