1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Merge pull request #9934 from alcaeus/mongodb-functions

Add call map entries for MongoDB functions
This commit is contained in:
orklah 2023-06-20 13:07:25 +02:00 committed by GitHub
commit 653ad669a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -7060,6 +7060,14 @@ return [
'MongoDB::setReadPreference' => ['bool', 'read_preference'=>'string', 'tags='=>'array'],
'MongoDB::setSlaveOkay' => ['bool', 'ok='=>'bool'],
'MongoDB::setWriteConcern' => ['bool', 'w'=>'mixed', 'wtimeout='=>'int'],
'MongoDB\BSON\fromJSON' => ['string', 'json' => 'string'],
'MongoDB\BSON\fromPHP' => ['string', 'value' => 'object|array'],
'MongoDB\BSON\toCanonicalExtendedJSON' => ['string', 'bson' => 'string'],
'MongoDB\BSON\toJSON' => ['string', 'bson' => 'string'],
'MongoDB\BSON\toPHP' => ['object|array', 'bson' => 'string', 'typemap=' => '?array'],
'MongoDB\BSON\toRelaxedExtendedJSON' => ['string', 'bson' => 'string'],
'MongoDB\Driver\Monitoring\addSubscriber' => ['void', 'subscriber' => 'MongoDB\Driver\Monitoring\Subscriber'],
'MongoDB\Driver\Monitoring\removeSubscriber' => ['void', 'subscriber' => 'MongoDB\Driver\Monitoring\Subscriber'],
'MongoDB\BSON\Binary::__construct' => ['void', 'data' => 'string', 'type=' => 'int'],
'MongoDB\BSON\Binary::getData' => ['string'],
'MongoDB\BSON\Binary::getType' => ['int'],

View File

@ -3731,6 +3731,14 @@ return [
'MongoDBRef::create' => ['array', 'collection'=>'string', 'id'=>'mixed', 'database='=>'string'],
'MongoDBRef::get' => ['?array', 'db'=>'MongoDB', 'ref'=>'array'],
'MongoDBRef::isRef' => ['bool', 'ref'=>'mixed'],
'MongoDB\BSON\fromJSON' => ['string', 'json' => 'string'],
'MongoDB\BSON\fromPHP' => ['string', 'value' => 'object|array'],
'MongoDB\BSON\toCanonicalExtendedJSON' => ['string', 'bson' => 'string'],
'MongoDB\BSON\toJSON' => ['string', 'bson' => 'string'],
'MongoDB\BSON\toPHP' => ['object|array', 'bson' => 'string', 'typemap=' => '?array'],
'MongoDB\BSON\toRelaxedExtendedJSON' => ['string', 'bson' => 'string'],
'MongoDB\Driver\Monitoring\addSubscriber' => ['void', 'subscriber' => 'MongoDB\Driver\Monitoring\Subscriber'],
'MongoDB\Driver\Monitoring\removeSubscriber' => ['void', 'subscriber' => 'MongoDB\Driver\Monitoring\Subscriber'],
'MongoDB\BSON\Binary::__construct' => ['void', 'data' => 'string', 'type=' => 'int'],
'MongoDB\BSON\Binary::getData' => ['string'],
'MongoDB\BSON\Binary::getType' => ['int'],