Skip to content
Permalink
Browse files

strict type fix

  • Loading branch information...
dg committed Feb 13, 2019
1 parent 16e68e2 commit e31b99ad1b6cb99aca9d79c9936c408279a02de9
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/presenters/ErrorPresenter.php
@@ -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';
}
});

0 comments on commit e31b99a

Please sign in to comment.
You can’t perform that action at this time.