1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
This commit is contained in:
Daniil Gentili 2022-12-30 21:06:03 +01:00
parent 9684be9d73
commit 4b00095b31

View File

@ -614,7 +614,7 @@ class VariableFetchAnalyzer
if ($var_id === '$http_response_header') {
// $http_response_header exists only in the local scope after a successful network request
return new Union([
Type::getNonEmptyListAtomic(Type::getNonFalsyString())
Type::getNonEmptyListAtomic(Type::getNonFalsyString()),
], [
'possibly_undefined' => true,
]);