1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix hash_file signature. See https://3v4l.org/E0BeU (#3920)

hash_file can return false if the file is not readable.
This commit is contained in:
Nicolas CARPi 2020-08-02 21:18:42 +02:00 committed by GitHub
parent ab64ccab88
commit 593a9063bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4255,7 +4255,7 @@ return [
'hash_algos' => ['list<string>'],
'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_file' => ['string|false', 'algo'=>'string', 'filename'=>'string', 'raw_output='=>'bool'],
'hash_final' => ['string', 'context'=>'HashContext|resource', 'raw_output='=>'bool'],
'hash_hkdf' => ['string|false', 'algo'=>'string', 'ikm'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'],
'hash_hmac' => ['string', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'raw_output='=>'bool'],