Skip to content

Commit

Permalink
strict type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 13, 2019
1 parent 16e68e2 commit e31b99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/ErrorPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function run(Nette\Application\Request $request): Nette\Application\IResp

$this->logger->log($exception, ILogger::EXCEPTION);
return new Responses\CallbackResponse(function (Http\IRequest $httpRequest, Http\IResponse $httpResponse): void {
if (preg_match('#^text/html(?:;|$)#', $httpResponse->getHeader('Content-Type'))) {
if (preg_match('#^text/html(?:;|$)#', (string) $httpResponse->getHeader('Content-Type'))) {
require __DIR__ . '/templates/Error/500.phtml';
}
});
Expand Down

0 comments on commit e31b99a

Please sign in to comment.