mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Merge pull request #8032 from VincentLanglet/stat
Precise stat return type
This commit is contained in:
commit
6c52683e7b
@ -3333,7 +3333,7 @@ return [
|
||||
'fscanf\'1' => ['int', 'stream'=>'resource', 'format'=>'string', '&...w_vars='=>'string|int|float'],
|
||||
'fseek' => ['int', 'stream'=>'resource', 'offset'=>'int', 'whence='=>'int'],
|
||||
'fsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'],
|
||||
'fstat' => ['array|false', 'stream'=>'resource'],
|
||||
'fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'stream'=>'resource'],
|
||||
'ftell' => ['int|false', 'stream'=>'resource'],
|
||||
'ftok' => ['int', 'filename'=>'string', 'project_id'=>'string'],
|
||||
'ftp_alloc' => ['bool', 'ftp'=>'FTP\Connection', 'size'=>'int', '&w_response='=>'string'],
|
||||
@ -6959,7 +6959,7 @@ return [
|
||||
'LogicException::getTrace' => ['list<array{file?:string,line?:int,function:string,class?:class-string,type?:\'::\'|\'->\',args?:array<mixed>}>'],
|
||||
'LogicException::getTraceAsString' => ['string'],
|
||||
'long2ip' => ['string', 'ip'=>'string|int'],
|
||||
'lstat' => ['array|false', 'filename'=>'string'],
|
||||
'lstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'filename'=>'string'],
|
||||
'ltrim' => ['string', 'string'=>'string', 'characters='=>'string'],
|
||||
'Lua::__call' => ['mixed', 'lua_func'=>'callable', 'args='=>'array', 'use_self='=>'int'],
|
||||
'Lua::__construct' => ['void', 'lua_script_file'=>'string'],
|
||||
@ -13217,7 +13217,7 @@ return [
|
||||
'SplFileObject::fread' => ['string|false', 'length'=>'int'],
|
||||
'SplFileObject::fscanf' => ['array|int', 'format'=>'string', '&...w_vars='=>'string|int|float'],
|
||||
'SplFileObject::fseek' => ['int', 'pos'=>'int', 'whence='=>'int'],
|
||||
'SplFileObject::fstat' => ['array|false'],
|
||||
'SplFileObject::fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}'],
|
||||
'SplFileObject::ftell' => ['int|false'],
|
||||
'SplFileObject::ftruncate' => ['bool', 'size'=>'int'],
|
||||
'SplFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'],
|
||||
@ -13410,7 +13410,7 @@ return [
|
||||
'SplTempFileObject::fread' => ['false|string', 'length'=>'int'],
|
||||
'SplTempFileObject::fscanf' => ['bool', 'format'=>'string', '&...w_vars='=>'array<int,float>|array<int,int>|array<int,string>'],
|
||||
'SplTempFileObject::fseek' => ['int', 'pos'=>'int', 'whence='=>'int'],
|
||||
'SplTempFileObject::fstat' => ['array|false'],
|
||||
'SplTempFileObject::fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}'],
|
||||
'SplTempFileObject::ftell' => ['int'],
|
||||
'SplTempFileObject::ftruncate' => ['bool', 'size'=>'int'],
|
||||
'SplTempFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'],
|
||||
@ -13647,18 +13647,18 @@ return [
|
||||
'ssh2_scp_send' => ['bool', 'session'=>'resource', 'local_file'=>'string', 'remote_file'=>'string', 'create_mode='=>'int'],
|
||||
'ssh2_sftp' => ['resource|false', 'session'=>'resource'],
|
||||
'ssh2_sftp_chmod' => ['bool', 'sftp'=>'resource', 'filename'=>'string', 'mode'=>'int'],
|
||||
'ssh2_sftp_lstat' => ['array|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_lstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_mkdir' => ['bool', 'sftp'=>'resource', 'dirname'=>'string', 'mode='=>'int', 'recursive='=>'bool'],
|
||||
'ssh2_sftp_readlink' => ['string|false', 'sftp'=>'resource', 'link'=>'string'],
|
||||
'ssh2_sftp_realpath' => ['string|false', 'sftp'=>'resource', 'filename'=>'string'],
|
||||
'ssh2_sftp_rename' => ['bool', 'sftp'=>'resource', 'from'=>'string', 'to'=>'string'],
|
||||
'ssh2_sftp_rmdir' => ['bool', 'sftp'=>'resource', 'dirname'=>'string'],
|
||||
'ssh2_sftp_stat' => ['array|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_stat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_symlink' => ['bool', 'sftp'=>'resource', 'target'=>'string', 'link'=>'string'],
|
||||
'ssh2_sftp_unlink' => ['bool', 'sftp'=>'resource', 'filename'=>'string'],
|
||||
'ssh2_shell' => ['resource|false', 'session'=>'resource', 'term_type='=>'string', 'env='=>'array', 'width='=>'int', 'height='=>'int', 'width_height_type='=>'int'],
|
||||
'ssh2_tunnel' => ['resource|false', 'session'=>'resource', 'host'=>'string', 'port'=>'int'],
|
||||
'stat' => ['array|false', 'filename'=>'string'],
|
||||
'stat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'filename'=>'string'],
|
||||
'stats_absolute_deviation' => ['float', 'a'=>'array'],
|
||||
'stats_cdf_beta' => ['float', 'par1'=>'float', 'par2'=>'float', 'par3'=>'float', 'which'=>'int'],
|
||||
'stats_cdf_binomial' => ['float', 'par1'=>'float', 'par2'=>'float', 'par3'=>'float', 'which'=>'int'],
|
||||
|
@ -7715,7 +7715,7 @@ return [
|
||||
'SplFileObject::fread' => ['string|false', 'length'=>'int'],
|
||||
'SplFileObject::fscanf' => ['array|int', 'format'=>'string', '&...w_vars='=>'string|int|float'],
|
||||
'SplFileObject::fseek' => ['int', 'pos'=>'int', 'whence='=>'int'],
|
||||
'SplFileObject::fstat' => ['array|false'],
|
||||
'SplFileObject::fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}'],
|
||||
'SplFileObject::ftell' => ['int|false'],
|
||||
'SplFileObject::ftruncate' => ['bool', 'size'=>'int'],
|
||||
'SplFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'],
|
||||
@ -7907,7 +7907,7 @@ return [
|
||||
'SplTempFileObject::fread' => ['false|string', 'length'=>'int'],
|
||||
'SplTempFileObject::fscanf' => ['bool', 'format'=>'string', '&...w_vars='=>'array<int,float>|array<int,int>|array<int,string>'],
|
||||
'SplTempFileObject::fseek' => ['int', 'pos'=>'int', 'whence='=>'int'],
|
||||
'SplTempFileObject::fstat' => ['array|false'],
|
||||
'SplTempFileObject::fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}'],
|
||||
'SplTempFileObject::ftell' => ['int'],
|
||||
'SplTempFileObject::ftruncate' => ['bool', 'size'=>'int'],
|
||||
'SplTempFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'],
|
||||
@ -10895,7 +10895,7 @@ return [
|
||||
'fscanf\'1' => ['int', 'stream'=>'resource', 'format'=>'string', '&...w_vars='=>'string|int|float'],
|
||||
'fseek' => ['int', 'stream'=>'resource', 'offset'=>'int', 'whence='=>'int'],
|
||||
'fsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'],
|
||||
'fstat' => ['array|false', 'stream'=>'resource'],
|
||||
'fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'stream'=>'resource'],
|
||||
'ftell' => ['int|false', 'stream'=>'resource'],
|
||||
'ftok' => ['int', 'filename'=>'string', 'project_id'=>'string'],
|
||||
'ftp_alloc' => ['bool', 'ftp'=>'resource', 'size'=>'int', '&w_response='=>'string'],
|
||||
@ -12582,7 +12582,7 @@ return [
|
||||
'log10' => ['float', 'num'=>'float'],
|
||||
'log1p' => ['float', 'num'=>'float'],
|
||||
'long2ip' => ['string', 'ip'=>'string|int'],
|
||||
'lstat' => ['array|false', 'filename'=>'string'],
|
||||
'lstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'filename'=>'string'],
|
||||
'ltrim' => ['string', 'string'=>'string', 'characters='=>'string'],
|
||||
'lzf_compress' => ['string', 'data'=>'string'],
|
||||
'lzf_decompress' => ['string', 'data'=>'string'],
|
||||
@ -15079,18 +15079,18 @@ return [
|
||||
'ssh2_scp_send' => ['bool', 'session'=>'resource', 'local_file'=>'string', 'remote_file'=>'string', 'create_mode='=>'int'],
|
||||
'ssh2_sftp' => ['resource|false', 'session'=>'resource'],
|
||||
'ssh2_sftp_chmod' => ['bool', 'sftp'=>'resource', 'filename'=>'string', 'mode'=>'int'],
|
||||
'ssh2_sftp_lstat' => ['array|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_lstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_mkdir' => ['bool', 'sftp'=>'resource', 'dirname'=>'string', 'mode='=>'int', 'recursive='=>'bool'],
|
||||
'ssh2_sftp_readlink' => ['string|false', 'sftp'=>'resource', 'link'=>'string'],
|
||||
'ssh2_sftp_realpath' => ['string|false', 'sftp'=>'resource', 'filename'=>'string'],
|
||||
'ssh2_sftp_rename' => ['bool', 'sftp'=>'resource', 'from'=>'string', 'to'=>'string'],
|
||||
'ssh2_sftp_rmdir' => ['bool', 'sftp'=>'resource', 'dirname'=>'string'],
|
||||
'ssh2_sftp_stat' => ['array|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_stat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'sftp'=>'resource', 'path'=>'string'],
|
||||
'ssh2_sftp_symlink' => ['bool', 'sftp'=>'resource', 'target'=>'string', 'link'=>'string'],
|
||||
'ssh2_sftp_unlink' => ['bool', 'sftp'=>'resource', 'filename'=>'string'],
|
||||
'ssh2_shell' => ['resource|false', 'session'=>'resource', 'term_type='=>'string', 'env='=>'array', 'width='=>'int', 'height='=>'int', 'width_height_type='=>'int'],
|
||||
'ssh2_tunnel' => ['resource|false', 'session'=>'resource', 'host'=>'string', 'port'=>'int'],
|
||||
'stat' => ['array|false', 'filename'=>'string'],
|
||||
'stat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'filename'=>'string'],
|
||||
'stats_absolute_deviation' => ['float', 'a'=>'array'],
|
||||
'stats_cdf_beta' => ['float', 'par1'=>'float', 'par2'=>'float', 'par3'=>'float', 'which'=>'int'],
|
||||
'stats_cdf_binomial' => ['float', 'par1'=>'float', 'par2'=>'float', 'par3'=>'float', 'which'=>'int'],
|
||||
|
Loading…
Reference in New Issue
Block a user