Skip to content
Permalink
Browse files

strict type fix

  • Loading branch information...
dg committed Feb 13, 2019
1 parent 2875863 commit 494928e867b15aa8e69456cd16e891bfbb477861
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/presenters/ErrorPresenter.php
@@ -40,7 +40,7 @@ public function run(Nette\Application\Request $request): Nette\Application\IResp
$this->logger->log($e, 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 494928e

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