Skip to content

Commit

Permalink
size and error in $_FILES more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Oct 10, 2022
1 parent fa53050 commit 1e6019d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,15 +746,15 @@ public static function getGlobalType(string $var_id, int $codebase_analysis_php_
new TNonEmptyList(Type::getString()),
]),
'size' => new Union([
new TInt(),
new TIntRange(0, null),
new TNonEmptyList(Type::getInt()),
]),
'tmp_name' => new Union([
new TString(),
new TNonEmptyList(Type::getString()),
]),
'error' => new Union([
new TInt(),
new TIntRange(0, 8),
new TNonEmptyList(Type::getInt()),
]),
];
Expand Down

0 comments on commit 1e6019d

Please sign in to comment.