1
0
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:
kkmuffme 2022-10-10 16:18:27 +02:00
parent fa53050483
commit 1e6019ddde

View File

@ -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()),
]),
];