Commit c3e4774e authored by Jeremy Mikola's avatar Jeremy Mikola

Merge branch 'v1.0'

parents 2f50afa0 04c9bc04
...@@ -62,7 +62,7 @@ class Client ...@@ -62,7 +62,7 @@ class Client
* Return internal properties for debugging purposes. * Return internal properties for debugging purposes.
* *
* @see http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo * @see http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo
* @param array * @return array
*/ */
public function __debugInfo() public function __debugInfo()
{ {
...@@ -93,7 +93,7 @@ class Client ...@@ -93,7 +93,7 @@ class Client
/** /**
* Return the connection string (i.e. URI). * Return the connection string (i.e. URI).
* *
* @param string * @return string
*/ */
public function __toString() public function __toString()
{ {
......
...@@ -117,7 +117,7 @@ class Collection ...@@ -117,7 +117,7 @@ class Collection
* Return internal properties for debugging purposes. * Return internal properties for debugging purposes.
* *
* @see http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo * @see http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo
* @param array * @return array
*/ */
public function __debugInfo() public function __debugInfo()
{ {
...@@ -136,7 +136,7 @@ class Collection ...@@ -136,7 +136,7 @@ class Collection
* Return the collection namespace (e.g. "db.collection"). * Return the collection namespace (e.g. "db.collection").
* *
* @see https://docs.mongodb.org/manual/faq/developers/#faq-dev-namespace * @see https://docs.mongodb.org/manual/faq/developers/#faq-dev-namespace
* @param string * @return string
*/ */
public function __toString() public function __toString()
{ {
......
...@@ -94,7 +94,7 @@ class Database ...@@ -94,7 +94,7 @@ class Database
* Return internal properties for debugging purposes. * Return internal properties for debugging purposes.
* *
* @see http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo * @see http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo
* @param array * @return array
*/ */
public function __debugInfo() public function __debugInfo()
{ {
...@@ -128,7 +128,7 @@ class Database ...@@ -128,7 +128,7 @@ class Database
/** /**
* Return the database name. * Return the database name.
* *
* @param string * @return string
*/ */
public function __toString() public function __toString()
{ {
......
...@@ -97,9 +97,7 @@ class CreateIndexes implements Executable ...@@ -97,9 +97,7 @@ class CreateIndexes implements Executable
'indexes' => $this->indexes, 'indexes' => $this->indexes,
]); ]);
$cursor = $server->executeCommand($this->databaseName, $command); $server->executeCommand($this->databaseName, $command);
return current($cursor->toArray());
} }
/** /**
......
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