From 3c3839b5cb81ceb5601da0cd1b9461502b428901 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Sun, 9 Oct 2022 18:01:27 +0400 Subject: [PATCH] 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 --- dictionaries/CallMap_81_delta.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dictionaries/CallMap_81_delta.php b/dictionaries/CallMap_81_delta.php index d86cc48cf..70aa34add 100644 --- a/dictionaries/CallMap_81_delta.php +++ b/dictionaries/CallMap_81_delta.php @@ -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'],