mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Update hash(), hash_file() and hash_init() types
see https://github.com/php/php-src/blob/php-8.1.5/ext/hash/hash.stub.php
This commit is contained in:
parent
dec8d0edc2
commit
3c3839b5cb
@ -222,16 +222,16 @@ return [
|
||||
'new' => ['mixed|false', 'ftp' => 'FTP\Connection', 'option' => 'int'],
|
||||
],
|
||||
'hash' => [
|
||||
'old' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'],
|
||||
'new' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool', 'options='=>'array'],
|
||||
'old' => ['non-empty-string', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'],
|
||||
'new' => ['non-empty-string', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool', 'options='=>'array{seed:scalar}'],
|
||||
],
|
||||
'hash_file' => [
|
||||
'old' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool'],
|
||||
'new' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool', 'options='=>'array'],
|
||||
'new' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'binary='=>'bool', 'options='=>'array{seed:scalar}'],
|
||||
],
|
||||
'hash_init' => [
|
||||
'old' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'],
|
||||
'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string', 'options='=>'array'],
|
||||
'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string', 'options='=>'array{seed:scalar}'],
|
||||
],
|
||||
'imageinterlace' => [
|
||||
'old' => ['int|bool', 'image'=>'GdImage', 'enable='=>'bool|null'],
|
||||
|
Loading…
Reference in New Issue
Block a user