enh(sharing): enable unsharing for sharees for DAV shares #37283
Annotations
7 errors
Psalm:
apps/dav/lib/DAV/Sharing/Backend.php#L185
apps/dav/lib/DAV/Sharing/Backend.php:185:13: InvalidReturnType: The declared return type 'list<array{'{http://owncloud.org/ns}group-share': bool, '{http://owncloud.org/ns}principal': string, commonName: string, href: string, readOnly: bool, status: int}>' for OCA\DAV\DAV\Sharing\Backend::getShares is incorrect, got 'list<array{'{http://owncloud.org/ns}group-share': bool, '{http://owncloud.org/ns}principal': string, access: int, commonName: string, href: non-empty-string, readOnly: bool, resourceid: mixed, status: 1}>' which is different due to additional array shape fields (resourceid, access) (see https://psalm.dev/011)
|
Psalm:
apps/dav/lib/DAV/Sharing/Backend.php#L217
apps/dav/lib/DAV/Sharing/Backend.php:217:10: InvalidReturnStatement: The inferred type 'list<array{'{http://owncloud.org/ns}group-share': bool, '{http://owncloud.org/ns}principal': string, access: int, commonName: string, href: non-empty-string, readOnly: bool, resourceid: mixed, status: 1}>' does not match the declared return type 'list<array{'{http://owncloud.org/ns}group-share': bool, '{http://owncloud.org/ns}principal': string, commonName: string, href: string, readOnly: bool, status: int}>' for OCA\DAV\DAV\Sharing\Backend::getShares due to additional array shape fields (resourceid, access) (see https://psalm.dev/128)
|
Psalm:
apps/dav/lib/DAV/Sharing/Backend.php#L259
apps/dav/lib/DAV/Sharing/Backend.php:259:13: MoreSpecificReturnType: The declared return type 'list<array{principal: string, privilege: string, protected: bool}>' for OCA\DAV\DAV\Sharing\Backend::applyShareAcl is more specific than the inferred return type 'array<int<0, max>, array{principal: string, privilege: string, protected: bool}>' (see https://psalm.dev/070)
|
Psalm:
apps/dav/lib/DAV/Sharing/Backend.php#L264
apps/dav/lib/DAV/Sharing/Backend.php:264:7: InvalidArrayOffset: Cannot access value on variable $share using offset value of 'access', expecting 'href', 'commonName', 'status', 'readOnly', '{http://owncloud.org/ns}principal' or '{http://owncloud.org/ns}group-share' (see https://psalm.dev/115)
|
Psalm:
apps/dav/lib/DAV/Sharing/Backend.php#L292
apps/dav/lib/DAV/Sharing/Backend.php:292:11: InvalidArrayOffset: Cannot access value on variable $share using offset value of 'access', expecting 'href', 'commonName', 'status', 'readOnly', '{http://owncloud.org/ns}principal' or '{http://owncloud.org/ns}group-share' (see https://psalm.dev/115)
|
Psalm:
apps/dav/lib/DAV/Sharing/Backend.php#L301
apps/dav/lib/DAV/Sharing/Backend.php:301:10: LessSpecificReturnStatement: The type 'array<int<0, max>, array{principal: string, privilege: string, protected: bool}>' is more general than the declared return type 'list<array{principal: string, privilege: string, protected: bool}>' for OCA\DAV\DAV\Sharing\Backend::applyShareAcl (see https://psalm.dev/129)
|
Psalm
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading