diff --git a/src/PhpDebugBarMiddleware.php b/src/PhpDebugBarMiddleware.php index 8d4a892..f78c168 100644 --- a/src/PhpDebugBarMiddleware.php +++ b/src/PhpDebugBarMiddleware.php @@ -17,7 +17,7 @@ /** * @author Witold Wasiczko */ -final class PhpDebugBarMiddleware implements MiddlewareInterface +class PhpDebugBarMiddleware implements MiddlewareInterface { public const FORCE_KEY = 'X-Enable-Debug-Bar'; @@ -190,7 +190,7 @@ private function getContentTypeByFileName(string $filename): string return $map[$ext] ?? 'text/plain'; } - private function isHtmlResponse(Response $response): bool + protected function isHtmlResponse(Response $response): bool { return $this->isHtml($response, 'Content-Type'); }