Skip to content

Commit 3c74ce1

Browse files
committed
strict type fix
1 parent 90823ff commit 3c74ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/ErrorPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function run(Application\Request $request): Application\IResponse
4444
}
4545
}
4646
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'))) {
47+
if (preg_match('#^text/html(?:;|$)#', (string) $httpResponse->getHeader('Content-Type'))) {
4848
require __DIR__ . '/templates/error.phtml';
4949
}
5050
});

0 commit comments

Comments
 (0)