Skip to content

Commit 9dd9d31

Browse files
committed
fix phpstan errors
1 parent 3c27a8d commit 9dd9d31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middlewares/FileViewer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
4141
{
4242
$config = config('filesystems');
4343

44-
if ([] === $config['viewable'] ?? []) {
44+
if ([] === ($config['viewable'] ?? [])) {
4545
return $handler->handle($request);
4646
}
4747

@@ -50,7 +50,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
5050

5151
foreach ($config['disks'] as $name => $disk) {
5252
if (str_ends_with(trim($disk['url'], '/'), trim($prefix, '/'))) {
53-
$this->disk = $this->filesystem->disk($name);
53+
$this->disk = $this->filesystem->disk($name); // @phpstan-ignore-line
5454
break;
5555
}
5656
}

0 commit comments

Comments
 (0)