diff --git a/src/Psalm/CallMap.php b/src/Psalm/CallMap.php index 106238153..ca42bc47c 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -3718,19 +3718,19 @@ return [ 'HaruPage::textRect' => ['bool', 'left'=>'float', 'top'=>'float', 'right'=>'float', 'bottom'=>'float', 'text'=>'string', 'align='=>'int'], 'hash' => ['string', 'algo'=>'string', 'data'=>'string', 'raw_output='=>'bool'], 'hash_algos' => ['array'], -'hash_copy' => ['HashContext', 'context'=>'HashContext'], +'hash_copy' => ['HashContext', 'context'=>'HashContext|resource'], 'hash_equals' => ['bool', 'known_string'=>'string', 'user_string'=>'string'], 'hash_file' => ['string', 'algo'=>'string', 'filename'=>'string', 'raw_output='=>'bool'], -'hash_final' => ['string', 'context'=>'HashContext', 'raw_output='=>'bool'], +'hash_final' => ['string', 'context'=>'HashContext|resource', 'raw_output='=>'bool'], 'hash_hkdf' => ['string', 'algo'=>'string', 'ikm'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'], 'hash_hmac' => ['string', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'raw_output='=>'bool'], 'hash_hmac_algos' => ['array'], 'hash_hmac_file' => ['string', 'algo'=>'string', 'filename'=>'string', 'key'=>'string', 'raw_output='=>'bool'], -'hash_init' => ['HashContext', 'algo'=>'string', 'options='=>'int', 'key='=>'string'], +'hash_init' => ['HashContext|resource', 'algo'=>'string', 'options='=>'int', 'key='=>'string'], 'hash_pbkdf2' => ['string', 'algo'=>'string', 'password'=>'string', 'salt'=>'string', 'iterations'=>'int', 'length='=>'int', 'raw_output='=>'bool'], -'hash_update' => ['bool', 'context'=>'HashContext', 'data'=>'string'], -'hash_update_file' => ['bool', 'context='=>'HashContext', 'filename'=>'string', 'scontext='=>'?HashContext'], -'hash_update_stream' => ['int', 'context'=>'HashContext', 'handle'=>'resource', 'length='=>'int'], +'hash_update' => ['bool', 'context'=>'HashContext|resource', 'data'=>'string'], +'hash_update_file' => ['bool', 'context='=>'HashContext|resource', 'filename'=>'string', 'scontext='=>'?HashContext'], +'hash_update_stream' => ['int', 'context'=>'HashContext|resource', 'handle'=>'resource', 'length='=>'int'], 'hashTableObj::clear' => ['void'], 'hashTableObj::get' => ['string', 'key'=>'string'], 'hashTableObj::nextkey' => ['string', 'previousKey'=>'string'],