1
0
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:
Alies Lapatsin 2022-10-09 18:01:27 +04:00 committed by GitHub
parent dec8d0edc2
commit 3c3839b5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'],