Skip to content

Commit 635671f

Browse files
committed
fix: Fix psalm error
Signed-off-by: Joas Schilling <[email protected]>
1 parent 9ce8435 commit 635671f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Operation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function checkFileAccess(IStorage $storage, string $path, bool $isDir = f
7373
$this->nestingLevel--;
7474

7575
if (!empty($match)) {
76-
$e = new \RuntimeException('Access denied for path ' . $path . ' that is ' . ($isDir ? '' : 'not ') . 'a directory and matches rules: ' . json_encode($match));
76+
$e = new \RuntimeException('Access denied for path ' . $path . ' that is ' . ($isDir ? '' : 'not ') . 'a directory and matches rules: ' . (string)json_encode($match));
7777
$this->logger->debug($e->getMessage(), ['exception' => $e]);
7878
// All Checks of one operation matched: prevent access
7979
throw new ForbiddenException('Access denied by access control', false);

0 commit comments

Comments
 (0)