Fixed deprecation warning

This commit is contained in:
Chris Kankiewicz
2022-04-08 14:26:27 -07:00
parent 020fc4959e
commit ffa1ba3ce1

View File

@@ -40,7 +40,7 @@ class WhoopsMiddleware
$this->whoops->pushHandler($this->pageHandler);
if (in_array('application/json', explode(',', $request->getHeaderLine('Accept')))) {
if (in_array('application/json', explode(',', (string) $request->getHeaderLine('Accept')))) {
$this->whoops->pushHandler($this->jsonHandler);
}