diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php index 214d62a6d..fef2f892c 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php @@ -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, ]);