Skip to content

Commit 27d1114

Browse files
committed
Update MongoDB stubs
Taking ext-mongodb source as reference. https://github.com/mongodb/mongo-php-driver/blob/master/src/MongoDB/Manager.stub.php
1 parent 708915e commit 27d1114

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

resources/functionMap.php

+10-5
Original file line numberDiff line numberDiff line change
@@ -6774,18 +6774,23 @@
67746774
'MongoDB\Driver\Exception\WriteException::getTraceAsString' => ['string'],
67756775
'MongoDB\Driver\Exception\WriteException::getWriteResult' => ['MongoDB\Driver\WriteResult'],
67766776
'MongoDB\Driver\Manager::__construct' => ['void', 'uri'=>'string', 'options='=>'array', 'driverOptions='=>'array'],
6777+
'MongoDB\Driver\Manager::createClientEncryption' => ['MongoDB\Driver\ClientEncryption', 'options='=>'array'],
67776778
'MongoDB\Driver\Manager::addSubscriber' => ['void', 'subscriber'=>'MongoDB\Driver\Monitoring\Subscriber'],
67786779
'MongoDB\Driver\Manager::executeBulkWrite' => ['MongoDB\Driver\WriteResult', 'namespace'=>'string', 'bulk'=>'MongoDB\Driver\BulkWrite', 'options='=>'array|MongoDB\Driver\WriteConcern|null'],
67796780
'MongoDB\Driver\Manager::executeCommand' => ['MongoDB\Driver\Cursor', 'db'=>'string', 'command'=>'MongoDB\Driver\Command', 'options='=>'array|MongoDB\Driver\ReadPreference|null'],
6780-
'MongoDB\Driver\Manager::executeDelete' => ['MongoDB\Driver\WriteResult', 'namespace'=>'string', 'filter'=>'array|object', 'deleteOptions='=>'array', 'writeConcern='=>'MongoDB\Driver\WriteConcern'],
6781-
'MongoDB\Driver\Manager::executeInsert' => ['MongoDB\Driver\WriteResult', 'namespace'=>'string', 'document'=>'array|object', 'writeConcern='=>'MongoDB\Driver\WriteConcern'],
67826781
'MongoDB\Driver\Manager::executeQuery' => ['MongoDB\Driver\Cursor', 'namespace'=>'string', 'query'=>'MongoDB\Driver\Query', 'options='=>'array|MongoDB\Driver\ReadPreference|null'],
6783-
'MongoDB\Driver\Manager::executeUpdate' => ['MongoDB\Driver\WriteResult', 'namespace'=>'string', 'filter'=>'array|object', 'newObj'=>'array|object', 'updateOptions='=>'array', 'writeConcern='=>'MongoDB\Driver\WriteConcern'],
6782+
'MongoDB\Driver\Manager::executeReadCommand' => ['MongoDB\Driver\Cursor', 'db'=>'string', 'command'=>'MongoDB\Driver\Command', 'options='=>'array|null'],
6783+
'MongoDB\Driver\Manager::executeReadWriteCommand' => ['MongoDB\Driver\Cursor', 'db'=>'string', 'command'=>'MongoDB\Driver\Command', 'options='=>'array|null'],
6784+
'MongoDB\Driver\Manager::executeWriteCommand' => ['MongoDB\Driver\Cursor', 'db'=>'string', 'command'=>'MongoDB\Driver\Command', 'options='=>'array|null'],
6785+
'MongoDB\Driver\Manager::getEncryptedFieldsMap' => ['array|object|null'],
67846786
'MongoDB\Driver\Manager::getReadConcern' => ['MongoDB\Driver\ReadConcern'],
67856787
'MongoDB\Driver\Manager::getReadPreference' => ['MongoDB\Driver\ReadPreference'],
67866788
'MongoDB\Driver\Manager::getServers' => ['array'],
67876789
'MongoDB\Driver\Manager::getWriteConcern' => ['MongoDB\Driver\WriteConcern'],
6790+
'MongoDB\Driver\Manager::removeSubscriber' => ['void', 'subscriber'=>'MongoDB\Driver\Monitoring\Subscriber'],
67886791
'MongoDB\Driver\Manager::selectServer' => ['MongoDB\Driver\Server', 'readPreference'=>'MongoDB\Driver\ReadPreference'],
6792+
'MongoDB\Driver\Manager::startSession' => ['void', 'options='=>'array|null'],
6793+
'MongoDB\Driver\Manager::__wakeup' => ['void'],
67896794
'MongoDB\Driver\Query::__construct' => ['void', 'filter'=>'array|object', 'queryOptions='=>'array'],
67906795
'MongoDB\Driver\ReadConcern::__construct' => ['void', 'level='=>'string'],
67916796
'MongoDB\Driver\ReadConcern::bsonSerialize' => ['object'],
@@ -6795,9 +6800,9 @@
67956800
'MongoDB\Driver\ReadPreference::getMode' => ['int'],
67966801
'MongoDB\Driver\ReadPreference::getTagSets' => ['array'],
67976802
'MongoDB\Driver\Server::__construct' => ['void', 'host'=>'string', 'port'=>'string', 'options='=>'array', 'driverOptions='=>'array'],
6798-
'MongoDB\Driver\Server::executeBulkWrite' => ['', 'namespace'=>'string', 'bulkWrite'=>'BulkWrite', 'options='=>'array|MongoDB\Driver\WriteConcern|nullarray|MongoDB\Driver\WriteConcern|null'],
6803+
'MongoDB\Driver\Server::executeBulkWrite' => ['', 'namespace'=>'string', 'bulkWrite'=>'MongoDB\Driver\BulkWrite', 'options='=>'array|MongoDB\Driver\WriteConcern|nullarray|MongoDB\Driver\WriteConcern|null'],
67996804
'MongoDB\Driver\Server::executeCommand' => ['MongoDB\Driver\Cursor', 'db'=>'string', 'command'=>'MongoDB\Driver\Command', 'options='=>'array|MongoDB\Driver\ReadPreference|null'],
6800-
'MongoDB\Driver\Server::executeQuery' => ['MongoDB\Driver\Cursor', 'namespace'=>'string', 'query'=>'MongoDB\Driver\Query', 'options='=>'array|RMongoDB\Driver\ReadPreference|null'],
6805+
'MongoDB\Driver\Server::executeQuery' => ['MongoDB\Driver\Cursor', 'namespace'=>'string', 'query'=>'MongoDB\Driver\Query', 'options='=>'array|MongoDB\Driver\ReadPreference|null'],
68016806
'MongoDB\Driver\Server::getHost' => [''],
68026807
'MongoDB\Driver\Server::getInfo' => [''],
68036808
'MongoDB\Driver\Server::getLatency' => [''],

0 commit comments

Comments
 (0)