Skip to content

Commit

Permalink
Remove unusable default parameters (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario-pierbattista authored Mar 2, 2021
1 parent 6894610 commit 9209d4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Capsule/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ final class Client extends MongoClient
* @internal param DataCollectorLoggerInterface $logger
*/
public function __construct(
$uri = 'mongodb://localhost:27017',
array $uriOptions = [],
array $driverOptions = [],
$uri,
array $uriOptions,
array $driverOptions,
string $clientName,
EventDispatcherInterface $eventDispatcher
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Capsule/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
string $clientName,
string $databaseName,
string $collectionName,
array $options = [],
array $options,
EventDispatcherInterface $eventDispatcher
) {
parent::__construct($manager, $databaseName, $collectionName, $options);
Expand Down
2 changes: 1 addition & 1 deletion src/Capsule/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(
Manager $manager,
string $clientName,
string $databaseName,
array $options = [],
array $options,
EventDispatcherInterface $eventDispatcher
) {
parent::__construct($manager, $databaseName, $options);
Expand Down

0 comments on commit 9209d4a

Please sign in to comment.