Skip to content

Commit

Permalink
Merge pull request #271 from devonliu02/patch-1
Browse files Browse the repository at this point in the history
add the default value for $out param.
  • Loading branch information
Sammaye authored Sep 6, 2016
2 parents 17816e7 + 7022807 commit 3c57ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ public function distinct($key, $query = array())
* @param array $options // All other options for input to the command
* @return mixed
*/
public function mapreduce($map, $reduce, $finalize = null, $out, $query = array(), $options = array())
public function mapreduce($map, $reduce, $finalize = null, $out = array(), $query = array(), $options = array())
{
return $this->getDbConnection()->getDB()->command(array_merge(array(
'mapreduce' => $this->collectionName(),
Expand Down

0 comments on commit 3c57ad3

Please sign in to comment.