We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0133b0e commit 515f466Copy full SHA for 515f466
src/Application/ErrorPresenter.php
@@ -44,7 +44,7 @@ public function run(Application\Request $request): Application\IResponse
44
}
45
46
return new Application\Responses\CallbackResponse(function (Http\IRequest $httpRequest, Http\IResponse $httpResponse) use ($code): void {
47
- if (preg_match('#^text/html(?:;|$)#', $httpResponse->getHeader('Content-Type'))) {
+ if (preg_match('#^text/html(?:;|$)#', (string) $httpResponse->getHeader('Content-Type'))) {
48
require __DIR__ . '/templates/error.phtml';
49
50
});
0 commit comments