Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

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 2875863 commit 494928e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/ErrorPresenter.php
Expand Up @@ -40,7 +40,7 @@ public function run(Nette\Application\Request $request): Nette\Application\IResp


$this->logger->log($e, ILogger::EXCEPTION); $this->logger->log($e, ILogger::EXCEPTION);
return new Responses\CallbackResponse(function (Http\IRequest $httpRequest, Http\IResponse $httpResponse): void { 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'; require __DIR__ . '/templates/Error/500.phtml';
} }
}); });
Expand Down

0 comments on commit 494928e

Please sign in to comment.