Skip to content

Commit

Permalink
Merge pull request #34 from Pruanik/fix-deprecated-method
Browse files Browse the repository at this point in the history
Fix deprecated arguments in mapreduce method
  • Loading branch information
Sammaye authored Apr 11, 2022
2 parents 299f55f + 4a00cce commit 6ebf11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ public function distinct($fieldName, $filter = [], array $options = [])
* @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 = ['inline' => 1], $query = [], $options = [])
{
return $this
->getDbConnection()
Expand Down

0 comments on commit 6ebf11c

Please sign in to comment.