From c96fed64bcffe69f71988300fda788be2a64534c Mon Sep 17 00:00:00 2001 From: Neznaenko Anton Date: Thu, 11 Apr 2019 14:01:45 +0300 Subject: [PATCH] minor callmap fixes for Mongo/MongoClient::__construct and ReflectionMethod::getClosure --- src/Psalm/Internal/CallMap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Internal/CallMap.php b/src/Psalm/Internal/CallMap.php index 27db3eddb..cf858ee88 100644 --- a/src/Psalm/Internal/CallMap.php +++ b/src/Psalm/Internal/CallMap.php @@ -6910,7 +6910,7 @@ return [ 'mkdir' => ['bool', 'pathname'=>'string', 'mode='=>'int', 'recursive='=>'bool', 'context='=>'resource'], 'mktime' => ['int', 'hour='=>'int', 'min='=>'int', 'sec='=>'int', 'mon='=>'int', 'day='=>'int', 'year='=>'int'], 'money_format' => ['string', 'format'=>'string', 'value'=>'float'], -'Mongo::__construct' => ['void', 'server='=>'string', 'options='=>'array', 'driver_options'=>'array'], +'Mongo::__construct' => ['void', 'server='=>'string', 'options='=>'array', 'driver_options='=>'array'], 'Mongo::__get' => ['MongoDB', 'dbname'=>'string'], 'Mongo::__toString' => ['string'], 'Mongo::close' => ['bool'], @@ -6942,7 +6942,7 @@ return [ 'Mongo::switchSlave' => ['string'], 'MongoBinData::__construct' => ['void', 'data'=>'string', 'type='=>'int'], 'MongoBinData::__toString' => ['string'], -'MongoClient::__construct' => ['void', 'server='=>'string', 'options='=>'array', 'driver_options'=>'array'], +'MongoClient::__construct' => ['void', 'server='=>'string', 'options='=>'array', 'driver_options='=>'array'], 'MongoClient::__get' => ['MongoDB', 'dbname'=>'string'], 'MongoClient::__toString' => ['string'], 'MongoClient::close' => ['bool', 'connection='=>'bool|string'], @@ -10619,7 +10619,7 @@ return [ 'ReflectionMethod::__construct\'1' => ['void', 'class_method'=>'string'], 'ReflectionMethod::__toString' => ['string'], 'ReflectionMethod::export' => ['string|null', 'class'=>'string', 'name'=>'string', 'return='=>'bool'], -'ReflectionMethod::getClosure' => ['?Closure', 'object'=>'?object'], +'ReflectionMethod::getClosure' => ['?Closure', 'object='=>'?object'], 'ReflectionMethod::getClosureScopeClass' => ['ReflectionClass'], 'ReflectionMethod::getClosureThis' => ['object'], 'ReflectionMethod::getDeclaringClass' => ['ReflectionClass'],