Skip to content

Commit d1b7a48

Browse files
committed
Cast expected string arguments
1 parent 10ea91c commit d1b7a48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Collection
5656
public function __construct(Manager $manager, $namespace, WriteConcern $writeConcern = null, ReadPreference $readPreference = null)
5757
{
5858
$this->manager = $manager;
59-
$this->ns = $namespace;
59+
$this->ns = (string) $namespace;
6060
$this->wc = $writeConcern;
6161
$this->rp = $readPreference;
6262

src/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Database
3030
public function __construct(Manager $manager, $databaseName, WriteConcern $writeConcern = null, ReadPreference $readPreference = null)
3131
{
3232
$this->manager = $manager;
33-
$this->databaseName = $databaseName;
33+
$this->databaseName = (string) $databaseName;
3434
$this->writeConcern = $writeConcern;
3535
$this->readPreference = $readPreference;
3636
}

0 commit comments

Comments
 (0)