Skip to content

Commit 90155d9

Browse files
committed
Keep optional selectGridFSBucket() bucketName in options array
As a rule of thumb, we've decided keep all optional parameters in an options array across the library's public API.
1 parent 0bb6462 commit 90155d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Database.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,12 @@ public function selectCollection($collectionName, array $options = [])
267267
* Select a GridFS bucket within this database.
268268
*
269269
* @see Bucket::__construct() for supported options
270-
* @param string $bucketName Name of the bucket to select (defaults to 'fs')
271-
* @param array $options Bucket constructor options
270+
* @param array $options Bucket constructor options
272271
* @return Bucket
273272
*/
274-
public function selectGridFSBucket($bucketName = 'fs', array $options = [])
273+
public function selectGridFSBucket(array $options = [])
275274
{
276275
$options += [
277-
'bucketName' => $bucketName,
278276
'readConcern' => $this->readConcern,
279277
'readPreference' => $this->readPreference,
280278
'writeConcern' => $this->writeConcern,

0 commit comments

Comments
 (0)