Skip to content

Commit 60cd810

Browse files
committed
Bucket::find() should default to empty query filter
1 parent af6f678 commit 60cd810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GridFS/Bucket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function drop()
204204
* @param array $options Additional options
205205
* @return Cursor
206206
*/
207-
public function find($filter, array $options = [])
207+
public function find($filter = [], array $options = [])
208208
{
209209
return $this->collectionWrapper->findFiles($filter, $options);
210210
}

0 commit comments

Comments
 (0)