mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
size and error in $_FILES more specific
This commit is contained in:
parent
fa53050483
commit
1e6019ddde
@ -746,7 +746,7 @@ class VariableFetchAnalyzer
|
||||
new TNonEmptyList(Type::getString()),
|
||||
]),
|
||||
'size' => new Union([
|
||||
new TInt(),
|
||||
new TIntRange(0, null),
|
||||
new TNonEmptyList(Type::getInt()),
|
||||
]),
|
||||
'tmp_name' => new Union([
|
||||
@ -754,7 +754,7 @@ class VariableFetchAnalyzer
|
||||
new TNonEmptyList(Type::getString()),
|
||||
]),
|
||||
'error' => new Union([
|
||||
new TInt(),
|
||||
new TIntRange(0, 8),
|
||||
new TNonEmptyList(Type::getInt()),
|
||||
]),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user