Skip to content
Permalink
Browse files

Is the name $value the problem?

PHP7.2 is doing strange things when variables are named `value`. Perhaps
a different name will fare better.
  • Loading branch information...
markstory committed Sep 19, 2017
1 parent 5b84009 commit 613698ba5d72ed3ff19c012b2a0bf5586d2dddcc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Collection/Iterator/MapReduce.php
@@ -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;

0 comments on commit 613698b

Please sign in to comment.
You can’t perform that action at this time.