Skip to content

Commit

Permalink
fix(storage): use latest StorageWrapper signature
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Oct 14, 2024
1 parent 99395c3 commit e3ff473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ACL/ACLStorageWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function is_file($path): bool {
parent::is_file($path);
}

public function stat($path) {
public function stat(string $path): array | false {

Check failure on line 167 in lib/ACL/ACLStorageWrapper.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

MethodSignatureMismatch

lib/ACL/ACLStorageWrapper.php:167:30: MethodSignatureMismatch: Argument 1 of OCA\Collectives\ACL\ACLStorageWrapper::stat has wrong type 'string', expecting '' as defined by OCP\Files\Storage\IStorage::stat (see https://psalm.dev/042)
if (!$this->checkPermissions(Constants::PERMISSION_READ)) {
return false;
}
Expand Down

0 comments on commit e3ff473

Please sign in to comment.