Commit 63001e25 authored by Jeremy Mikola's avatar Jeremy Mikola

FindOne::execute() may return an array

The return type documentation should have been updated when the typMap option was introduced in PHPLIB-133.
parent c31e5300
...@@ -446,7 +446,7 @@ class Collection ...@@ -446,7 +446,7 @@ class Collection
* @see http://docs.mongodb.org/manual/core/read-operations-introduction/ * @see http://docs.mongodb.org/manual/core/read-operations-introduction/
* @param array|object $filter Query by which to filter documents * @param array|object $filter Query by which to filter documents
* @param array $options Additional options * @param array $options Additional options
* @return object|null * @return array|object|null
*/ */
public function findOne($filter = [], array $options = []) public function findOne($filter = [], array $options = [])
{ {
......
...@@ -74,7 +74,7 @@ class FindOne implements Executable ...@@ -74,7 +74,7 @@ class FindOne implements Executable
* *
* @see Executable::execute() * @see Executable::execute()
* @param Server $server * @param Server $server
* @return object|null * @return array|object|null
*/ */
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