mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
Merge pull request #9933 from alcaeus/mongodb-1.16-stubs
Update callmap for ext-mongodb 1.16
This commit is contained in:
commit
85d3e4dd68
@ -7080,10 +7080,28 @@ return [
|
||||
'MongoDB\BSON\Decimal128::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Decimal128::jsonSerialize' => ['mixed'],
|
||||
'MongoDB\BSON\Decimal128Interface::__toString' => ['string'],
|
||||
'MongoDB\BSON\Document::fromBSON' => ['MongoDB\BSON\Document', 'bson' => 'string'],
|
||||
'MongoDB\BSON\Document::fromJSON' => ['MongoDB\BSON\Document', 'json' => 'string'],
|
||||
'MongoDB\BSON\Document::fromPHP' => ['MongoDB\BSON\Document', 'value' => 'object|array'],
|
||||
'MongoDB\BSON\Document::get' => ['mixed', 'key' => 'string'],
|
||||
'MongoDB\BSON\Document::getIterator' => ['MongoDB\BSON\Iterator'],
|
||||
'MongoDB\BSON\Document::has' => ['bool', 'key' => 'string'],
|
||||
'MongoDB\BSON\Document::toPHP' => ['object|array', 'typeMap=' => '?array'],
|
||||
'MongoDB\BSON\Document::toCanonicalExtendedJSON' => ['string'],
|
||||
'MongoDB\BSON\Document::toRelaxedExtendedJSON' => ['string'],
|
||||
'MongoDB\BSON\Document::__toString' => ['string'],
|
||||
'MongoDB\BSON\Document::serialize' => ['string'],
|
||||
'MongoDB\BSON\Document::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Int64::__construct' => ['void', 'value' => 'string|int'],
|
||||
'MongoDB\BSON\Int64::__toString' => ['string'],
|
||||
'MongoDB\BSON\Int64::serialize' => ['string'],
|
||||
'MongoDB\BSON\Int64::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Int64::jsonSerialize' => ['mixed'],
|
||||
'MongoDB\BSON\Iterator::current' => ['mixed'],
|
||||
'MongoDB\BSON\Iterator::key' => ['string|int'],
|
||||
'MongoDB\BSON\Iterator::next' => ['void'],
|
||||
'MongoDB\BSON\Iterator::rewind' => ['void'],
|
||||
'MongoDB\BSON\Iterator::valid' => ['bool'],
|
||||
'MongoDB\BSON\Javascript::__construct' => ['void', 'code' => 'string', 'scope=' => 'object|array|null'],
|
||||
'MongoDB\BSON\Javascript::getCode' => ['string'],
|
||||
'MongoDB\BSON\Javascript::getScope' => ['?object'],
|
||||
@ -7108,6 +7126,14 @@ return [
|
||||
'MongoDB\BSON\ObjectId::jsonSerialize' => ['mixed'],
|
||||
'MongoDB\BSON\ObjectIdInterface::getTimestamp' => ['int'],
|
||||
'MongoDB\BSON\ObjectIdInterface::__toString' => ['string'],
|
||||
'MongoDB\BSON\PackedArray::fromPHP' => ['MongoDB\BSON\PackedArray', 'value' => 'array'],
|
||||
'MongoDB\BSON\PackedArray::get' => ['mixed', 'index' => 'int'],
|
||||
'MongoDB\BSON\PackedArray::getIterator' => ['MongoDB\BSON\Iterator'],
|
||||
'MongoDB\BSON\PackedArray::has' => ['bool', 'index' => 'int'],
|
||||
'MongoDB\BSON\PackedArray::toPHP' => ['object|array', 'typeMap=' => '?array'],
|
||||
'MongoDB\BSON\PackedArray::__toString' => ['string'],
|
||||
'MongoDB\BSON\PackedArray::serialize' => ['string'],
|
||||
'MongoDB\BSON\PackedArray::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Regex::__construct' => ['void', 'pattern' => 'string', 'flags=' => 'string'],
|
||||
'MongoDB\BSON\Regex::getPattern' => ['string'],
|
||||
'MongoDB\BSON\Regex::getFlags' => ['string'],
|
||||
@ -7157,6 +7183,7 @@ return [
|
||||
'MongoDB\Driver\ClientEncryption::decrypt' => ['mixed', 'value' => 'MongoDB\BSON\Binary'],
|
||||
'MongoDB\Driver\ClientEncryption::deleteKey' => ['object', 'keyId' => 'MongoDB\BSON\Binary'],
|
||||
'MongoDB\Driver\ClientEncryption::encrypt' => ['MongoDB\BSON\Binary', 'value' => 'mixed', 'options=' => '?array'],
|
||||
'MongoDB\Driver\ClientEncryption::encryptExpression' => ['object', 'expr' => 'object|array', 'options=' => '?array'],
|
||||
'MongoDB\Driver\ClientEncryption::getKey' => ['?object', 'keyId' => 'MongoDB\BSON\Binary'],
|
||||
'MongoDB\Driver\ClientEncryption::getKeyByAltName' => ['?object', 'keyAltName' => 'string'],
|
||||
'MongoDB\Driver\ClientEncryption::getKeys' => ['MongoDB\Driver\Cursor'],
|
||||
@ -7368,6 +7395,7 @@ return [
|
||||
'MongoDB\Driver\WriteResult::getUpsertedIds' => ['array'],
|
||||
'MongoDB\Driver\WriteResult::getWriteConcernError' => ['?MongoDB\Driver\WriteConcernError'],
|
||||
'MongoDB\Driver\WriteResult::getWriteErrors' => ['array'],
|
||||
'MongoDB\Driver\WriteResult::getErrorReplies' => ['array'],
|
||||
'MongoDB\Driver\WriteResult::isAcknowledged' => ['bool'],
|
||||
'MongoDBRef::create' => ['array', 'collection'=>'string', 'id'=>'mixed', 'database='=>'string'],
|
||||
'MongoDBRef::get' => ['?array', 'db'=>'MongoDB', 'ref'=>'array'],
|
||||
|
@ -3751,10 +3751,28 @@ return [
|
||||
'MongoDB\BSON\Decimal128::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Decimal128::jsonSerialize' => ['mixed'],
|
||||
'MongoDB\BSON\Decimal128Interface::__toString' => ['string'],
|
||||
'MongoDB\BSON\Document::fromBSON' => ['MongoDB\BSON\Document', 'bson' => 'string'],
|
||||
'MongoDB\BSON\Document::fromJSON' => ['MongoDB\BSON\Document', 'json' => 'string'],
|
||||
'MongoDB\BSON\Document::fromPHP' => ['MongoDB\BSON\Document', 'value' => 'object|array'],
|
||||
'MongoDB\BSON\Document::get' => ['mixed', 'key' => 'string'],
|
||||
'MongoDB\BSON\Document::getIterator' => ['MongoDB\BSON\Iterator'],
|
||||
'MongoDB\BSON\Document::has' => ['bool', 'key' => 'string'],
|
||||
'MongoDB\BSON\Document::toPHP' => ['object|array', 'typeMap=' => '?array'],
|
||||
'MongoDB\BSON\Document::toCanonicalExtendedJSON' => ['string'],
|
||||
'MongoDB\BSON\Document::toRelaxedExtendedJSON' => ['string'],
|
||||
'MongoDB\BSON\Document::__toString' => ['string'],
|
||||
'MongoDB\BSON\Document::serialize' => ['string'],
|
||||
'MongoDB\BSON\Document::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Int64::__construct' => ['void', 'value' => 'string|int'],
|
||||
'MongoDB\BSON\Int64::__toString' => ['string'],
|
||||
'MongoDB\BSON\Int64::serialize' => ['string'],
|
||||
'MongoDB\BSON\Int64::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Int64::jsonSerialize' => ['mixed'],
|
||||
'MongoDB\BSON\Iterator::current' => ['mixed'],
|
||||
'MongoDB\BSON\Iterator::key' => ['string|int'],
|
||||
'MongoDB\BSON\Iterator::next' => ['void'],
|
||||
'MongoDB\BSON\Iterator::rewind' => ['void'],
|
||||
'MongoDB\BSON\Iterator::valid' => ['bool'],
|
||||
'MongoDB\BSON\Javascript::__construct' => ['void', 'code' => 'string', 'scope=' => 'object|array|null'],
|
||||
'MongoDB\BSON\Javascript::getCode' => ['string'],
|
||||
'MongoDB\BSON\Javascript::getScope' => ['?object'],
|
||||
@ -3779,6 +3797,14 @@ return [
|
||||
'MongoDB\BSON\ObjectId::jsonSerialize' => ['mixed'],
|
||||
'MongoDB\BSON\ObjectIdInterface::getTimestamp' => ['int'],
|
||||
'MongoDB\BSON\ObjectIdInterface::__toString' => ['string'],
|
||||
'MongoDB\BSON\PackedArray::fromPHP' => ['MongoDB\BSON\PackedArray', 'value' => 'array'],
|
||||
'MongoDB\BSON\PackedArray::get' => ['mixed', 'index' => 'int'],
|
||||
'MongoDB\BSON\PackedArray::getIterator' => ['MongoDB\BSON\Iterator'],
|
||||
'MongoDB\BSON\PackedArray::has' => ['bool', 'index' => 'int'],
|
||||
'MongoDB\BSON\PackedArray::toPHP' => ['object|array', 'typeMap=' => '?array'],
|
||||
'MongoDB\BSON\PackedArray::__toString' => ['string'],
|
||||
'MongoDB\BSON\PackedArray::serialize' => ['string'],
|
||||
'MongoDB\BSON\PackedArray::unserialize' => ['void', 'serialized' => 'string'],
|
||||
'MongoDB\BSON\Regex::__construct' => ['void', 'pattern' => 'string', 'flags=' => 'string'],
|
||||
'MongoDB\BSON\Regex::getPattern' => ['string'],
|
||||
'MongoDB\BSON\Regex::getFlags' => ['string'],
|
||||
@ -3828,6 +3854,7 @@ return [
|
||||
'MongoDB\Driver\ClientEncryption::decrypt' => ['mixed', 'value' => 'MongoDB\BSON\Binary'],
|
||||
'MongoDB\Driver\ClientEncryption::deleteKey' => ['object', 'keyId' => 'MongoDB\BSON\Binary'],
|
||||
'MongoDB\Driver\ClientEncryption::encrypt' => ['MongoDB\BSON\Binary', 'value' => 'mixed', 'options=' => '?array'],
|
||||
'MongoDB\Driver\ClientEncryption::encryptExpression' => ['object', 'expr' => 'object|array', 'options=' => '?array'],
|
||||
'MongoDB\Driver\ClientEncryption::getKey' => ['?object', 'keyId' => 'MongoDB\BSON\Binary'],
|
||||
'MongoDB\Driver\ClientEncryption::getKeyByAltName' => ['?object', 'keyAltName' => 'string'],
|
||||
'MongoDB\Driver\ClientEncryption::getKeys' => ['MongoDB\Driver\Cursor'],
|
||||
@ -4039,6 +4066,7 @@ return [
|
||||
'MongoDB\Driver\WriteResult::getUpsertedIds' => ['array'],
|
||||
'MongoDB\Driver\WriteResult::getWriteConcernError' => ['?MongoDB\Driver\WriteConcernError'],
|
||||
'MongoDB\Driver\WriteResult::getWriteErrors' => ['array'],
|
||||
'MongoDB\Driver\WriteResult::getErrorReplies' => ['array'],
|
||||
'MongoDB\Driver\WriteResult::isAcknowledged' => ['bool'],
|
||||
'MongoDate::__construct' => ['void', 'second='=>'int', 'usecond='=>'int'],
|
||||
'MongoDate::__toString' => ['string'],
|
||||
|
Loading…
Reference in New Issue
Block a user