1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

Correct gzread signature (#4960)

Fixes vimeo/psalm#4959
This commit is contained in:
Bruce Weirdan 2021-01-09 02:50:10 +02:00 committed by Daniil Gentili
parent f9cbc07fb7
commit 7b43d321ad
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 1 deletions

View File

@ -4173,7 +4173,7 @@ return [
'gzopen' => ['resource|false', 'filename'=>'string', 'mode'=>'string', 'use_include_path='=>'int'],
'gzpassthru' => ['int|false', 'stream'=>'resource'],
'gzputs' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'],
'gzread' => ['string', 'stream'=>'resource', 'length'=>'int'],
'gzread' => ['string|false', 'stream'=>'resource', 'length'=>'int'],
'gzrewind' => ['bool', 'stream'=>'resource'],
'gzseek' => ['int', 'stream'=>'resource', 'offset'=>'int', 'whence='=>'int'],
'gztell' => ['int|false', 'stream'=>'resource'],

View File

@ -15,12 +15,14 @@
*/
return [
'new' => [
'gzread' => ['string|false', 'stream'=>'resource', 'length'=>'int'],
'password_hash' => ['string|null', 'password'=>'string', 'algo'=>'int|string|null', 'options='=>'array'],
'password_needs_rehash' => ['bool', 'hash'=>'string', 'algo'=>'int|string|null', 'options='=>'array'],
'proc_open' => ['resource|false', 'command'=>'string|array', 'descriptorspec'=>'array', '&w_pipes'=>'resource[]', 'cwd='=>'?string', 'env='=>'?array', 'other_options='=>'array'],
'ReflectionProperty::getType' => ['?ReflectionType'],
],
'old' => [
'gzread' => ['string|0', 'stream'=>'resource', 'length'=>'int'],
'password_hash' => ['string|false', 'password'=>'string', 'algo'=>'int', 'options='=>'array'],
'password_needs_rehash' => ['bool', 'hash'=>'string', 'algo'=>'int', 'options='=>'array'],
'proc_open' => ['resource|false', 'command'=>'string', 'descriptorspec'=>'array', '&w_pipes'=>'resource[]', 'cwd='=>'?string', 'env='=>'?array', 'other_options='=>'array'],