Commit d1b7a485 authored by Jeremy Mikola's avatar Jeremy Mikola

Cast expected string arguments

parent 10ea91c2
......@@ -56,7 +56,7 @@ class Collection
public function __construct(Manager $manager, $namespace, WriteConcern $writeConcern = null, ReadPreference $readPreference = null)
{
$this->manager = $manager;
$this->ns = $namespace;
$this->ns = (string) $namespace;
$this->wc = $writeConcern;
$this->rp = $readPreference;
......
......@@ -30,7 +30,7 @@ class Database
public function __construct(Manager $manager, $databaseName, WriteConcern $writeConcern = null, ReadPreference $readPreference = null)
{
$this->manager = $manager;
$this->databaseName = $databaseName;
$this->databaseName = (string) $databaseName;
$this->writeConcern = $writeConcern;
$this->readPreference = $readPreference;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment