mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
improve file_put_contents return type
This commit is contained in:
parent
d2e5a0722b
commit
41ce826f6d
@ -2792,7 +2792,7 @@ return [
|
|||||||
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||||
'file_exists' => ['bool', 'filename'=>'string'],
|
'file_exists' => ['bool', 'filename'=>'string'],
|
||||||
'file_get_contents' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'?int'],
|
'file_get_contents' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'?int'],
|
||||||
'file_put_contents' => ['int|false', 'filename'=>'string', 'data'=>'string|resource|array<string>', 'flags='=>'int', 'context='=>'resource'],
|
'file_put_contents' => ['int<0, max>|false', 'filename'=>'string', 'data'=>'string|resource|array<string>', 'flags='=>'int', 'context='=>'resource'],
|
||||||
'fileatime' => ['int|false', 'filename'=>'string'],
|
'fileatime' => ['int|false', 'filename'=>'string'],
|
||||||
'filectime' => ['int|false', 'filename'=>'string'],
|
'filectime' => ['int|false', 'filename'=>'string'],
|
||||||
'filegroup' => ['int|false', 'filename'=>'string'],
|
'filegroup' => ['int|false', 'filename'=>'string'],
|
||||||
|
@ -10417,7 +10417,7 @@ return [
|
|||||||
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'],
|
||||||
'file_exists' => ['bool', 'filename'=>'string'],
|
'file_exists' => ['bool', 'filename'=>'string'],
|
||||||
'file_get_contents' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'int'],
|
'file_get_contents' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'int'],
|
||||||
'file_put_contents' => ['int|false', 'filename'=>'string', 'data'=>'string|resource|array<string>', 'flags='=>'int', 'context='=>'resource'],
|
'file_put_contents' => ['int<0, max>|false', 'filename'=>'string', 'data'=>'string|resource|array<string>', 'flags='=>'int', 'context='=>'resource'],
|
||||||
'fileatime' => ['int|false', 'filename'=>'string'],
|
'fileatime' => ['int|false', 'filename'=>'string'],
|
||||||
'filectime' => ['int|false', 'filename'=>'string'],
|
'filectime' => ['int|false', 'filename'=>'string'],
|
||||||
'filegroup' => ['int|false', 'filename'=>'string'],
|
'filegroup' => ['int|false', 'filename'=>'string'],
|
||||||
|
Loading…
Reference in New Issue
Block a user