Closed max-nextcloud closed 1 month ago
I attempted to fix this in #1534 - but that fails psalm with:
ERROR: MethodSignatureMismatch - lib/ACL/ACLStorageWrapper.php:167:30
- 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)
public function stat(string $path): array|false {
@provokateurin How would i best handle this? (ideally while keeping collectives compatibility with Nextcloud 28 to 30)
Adding the return type is backwards compatible. To keep backwards compatibility with older version you don't add the param types now, but once Nextcloud 31 is the lowest supported version. You are not required to add them to be in line with the interface, as allowing more types by not specifying the type is allowed.
Duplicate of https://github.com/nextcloud/collectives/issues/1518
There's been a change in the signature of IStorage: https://github.com/nextcloud/server/commit/f28e74b7a8b3df11ba1f2e4a18492b8158528cdf#diff-f7bada9f6beaa1f713c302710e2b73283f5df5c7100966ba7e9a08b4cb2acef9
This leads to requests failing with: