mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Convert finfo functions to use object instead of a resource
This commit is contained in:
parent
97a3d673f4
commit
518e18f128
@ -3302,11 +3302,11 @@ return [
|
||||
'finfo::file' => ['string|false', 'file_name'=>'string', 'options='=>'int', 'context='=>'resource'],
|
||||
'finfo::finfo' => ['void', 'options='=>'int', 'magic_file='=>'string'],
|
||||
'finfo::set_flags' => ['bool', 'options'=>'int'],
|
||||
'finfo_buffer' => ['string|false', 'finfo'=>'resource', 'string'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
'finfo_close' => ['bool', 'finfo'=>'resource'],
|
||||
'finfo_file' => ['string|false', 'finfo'=>'resource', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
'finfo_open' => ['resource|false', 'flags='=>'int', 'magic_database='=>'string'],
|
||||
'finfo_set_flags' => ['bool', 'finfo'=>'resource', 'flags'=>'int'],
|
||||
'finfo_buffer' => ['string|false', 'finfo'=>'finfo', 'string'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
'finfo_close' => ['bool', 'finfo'=>'finfo'],
|
||||
'finfo_file' => ['string|false', 'finfo'=>'finfo', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
'finfo_open' => ['finfo|false', 'flags='=>'int', 'magic_database='=>'string'],
|
||||
'finfo_set_flags' => ['bool', 'finfo'=>'finfo', 'flags'=>'int'],
|
||||
'floatval' => ['float', 'value'=>'mixed'],
|
||||
'flock' => ['bool', 'stream'=>'resource', 'operation'=>'int', '&w_would_block='=>'int'],
|
||||
'floor' => ['float', 'num'=>'float'],
|
||||
|
@ -26,6 +26,26 @@ return [
|
||||
],
|
||||
|
||||
'changed' => [
|
||||
'finfo_buffer' => [
|
||||
'old' => ['string|false', 'finfo'=>'resource', 'string'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
'new' => ['string|false', 'finfo'=>'finfo', 'string'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
],
|
||||
'finfo_close' => [
|
||||
'old' => ['bool', 'finfo'=>'resource'],
|
||||
'new' => ['bool', 'finfo'=>'finfo'],
|
||||
],
|
||||
'finfo_file' => [
|
||||
'old' => ['string|false', 'finfo'=>'resource', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
'new' => ['string|false', 'finfo'=>'finfo', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||
],
|
||||
'finfo_open' => [
|
||||
'old' => ['resource|false', 'flags='=>'int', 'magic_database='=>'string'],
|
||||
'new' => ['finfo|false', 'flags='=>'int', 'magic_database='=>'string'],
|
||||
],
|
||||
'finfo_set_flags' => [
|
||||
'old' => ['bool', 'finfo'=>'resource', 'flags'=>'int'],
|
||||
'new' => ['bool', 'finfo'=>'finfo', 'flags'=>'int'],
|
||||
],
|
||||
'ftp_connect' => [
|
||||
'old' => ['resource|false', 'hostname' => 'string', 'port=' => 'int', 'timeout=' => 'int'],
|
||||
'new' => ['FTP\Connection|false', 'hostname' => 'string', 'port=' => 'int', 'timeout=' => 'int'],
|
||||
|
Loading…
Reference in New Issue
Block a user