mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-23 22:24:18 +02:00
Fixed deprecation warning
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user