Skip to content

Commit 973ebba

Browse files
committed
Fix
1 parent e55859b commit 973ebba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Psalm/Internal/Provider/ReturnTypeProvider/FilterInputReturnTypeProvider.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,13 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
161161
return $fails_or_not_set_type;
162162
}
163163

164-
$possible_types = ['$_GET' => INPUT_GET, '$_POST' => INPUT_POST, '$_COOKIE' => INPUT_COOKIE, '$_SERVER' => INPUT_SERVER, '$_ENV' => INPUT_ENV];
164+
$possible_types = [
165+
'$_GET' => INPUT_GET,
166+
'$_POST' => INPUT_POST,
167+
'$_COOKIE' => INPUT_COOKIE,
168+
'$_SERVER' => INPUT_SERVER,
169+
'$_ENV' => INPUT_ENV
170+
];
165171

166172
$first_arg_type_type = $first_arg_type->getSingleIntLiteral();
167173
$global_name = array_search($first_arg_type_type->value, $possible_types);

0 commit comments

Comments
 (0)