We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f94974 commit ba9eb44Copy full SHA for ba9eb44
1 file changed
Twig/Extension.php
@@ -240,7 +240,7 @@ protected function fetchInfosFromCodeOrResponse(int|array $codeOrResponse): arra
240
$level = 'default';
241
}
242
243
- $statusText = $code === 'N/A' ? 'N/A' : Response::$statusTexts[$code];
+ $statusText = $code === 'N/A' ? 'N/A' : Response::$statusTexts[$code] ?? 'N/A';
244
245
return [
246
'fromCache' => $fromCache,
0 commit comments