Commit f6d110f9 authored by Jeremy Mikola's avatar Jeremy Mikola

CreateCollection::execute() may return an array

The return type documentation should have been updated when the typMap option was introduced in PHPLIB-164.
parent e2c4a0c5
...@@ -166,7 +166,7 @@ class Database ...@@ -166,7 +166,7 @@ class Database
* @see CreateCollection::__construct() for supported options * @see CreateCollection::__construct() for supported options
* @param string $collectionName * @param string $collectionName
* @param array $options * @param array $options
* @return object Command result document * @return array|object Command result document
*/ */
public function createCollection($collectionName, array $options = []) public function createCollection($collectionName, array $options = [])
{ {
......
...@@ -35,8 +35,9 @@ class CreateCollection implements Executable ...@@ -35,8 +35,9 @@ class CreateCollection implements Executable
* the size option must also be specified. The default is false. * the size option must also be specified. The default is false.
* *
* * flags (integer): Options for the MMAPv1 storage engine only. Must be a * * flags (integer): Options for the MMAPv1 storage engine only. Must be a
* bitwise combination USE_POWER_OF_2_SIZES and NO_PADDING. The default * bitwise combination CreateCollection::USE_POWER_OF_2_SIZES and
* is USE_POWER_OF_2_SIZES. * CreateCollection::NO_PADDING. The default is
* CreateCollection::USE_POWER_OF_2_SIZES.
* *
* * indexOptionDefaults (document): Default configuration for indexes when * * indexOptionDefaults (document): Default configuration for indexes when
* creating the collection. * creating the collection.
...@@ -127,7 +128,7 @@ class CreateCollection implements Executable ...@@ -127,7 +128,7 @@ class CreateCollection implements Executable
* *
* @see Executable::execute() * @see Executable::execute()
* @param Server $server * @param Server $server
* @return object Command result document * @return array|object Command result document
*/ */
public function execute(Server $server) public function execute(Server $server)
{ {
......
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