diff options
author | Thomas Citharel <tcit@tcit.fr> | 2022-02-14 20:57:30 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2022-02-14 20:58:29 +0100 |
commit | 46e9f6d0c55ebeb033fb91112c8d7b1124121324 (patch) | |
tree | d33bf292ecab8c04fe93cf3704d66a9f30cca385 | |
parent | b3ba02b3828ed9604fad243df5944c0e9ea6720d (diff) | |
download | nextcloud-server-46e9f6d0c55ebeb033fb91112c8d7b1124121324.tar.gz nextcloud-server-46e9f6d0c55ebeb033fb91112c8d7b1124121324.zip |
Fix typo in DAV namespace registration
See https://github.com/nextcloud/3rdparty/blob/b0afba6d6508a1c85332cf8c61e90ad91b289ebc/sabre/dav/lib/DAV/Xml/Service.php#L43
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r-- | apps/dav/lib/Connector/Sabre/SharesPlugin.php | 2 | ||||
-rw-r--r-- | build/psalm-baseline.xml | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index 503d10aece3..d482aa4b510 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -98,7 +98,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { * @param \Sabre\DAV\Server $server */ public function initialize(\Sabre\DAV\Server $server) { - $server->xml->namespacesMap[self::NS_OWNCLOUD] = 'oc'; + $server->xml->namespaceMap[self::NS_OWNCLOUD] = 'oc'; $server->xml->elementMap[self::SHARETYPES_PROPERTYNAME] = ShareTypeList::class; $server->protectedProperties[] = self::SHARETYPES_PROPERTYNAME; $server->protectedProperties[] = self::SHAREES_PROPERTYNAME; diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index d5092282088..d60feeb928b 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -755,12 +755,6 @@ <UndefinedFunction occurrences="1"> <code>\Sabre\Uri\split($sabreNode->getPath())</code> </UndefinedFunction> - <UndefinedPropertyAssignment occurrences="1"> - <code>$server->xml->namespacesMap</code> - </UndefinedPropertyAssignment> - <UndefinedPropertyFetch occurrences="1"> - <code>$server->xml->namespacesMap</code> - </UndefinedPropertyFetch> </file> <file src="apps/dav/lib/Connector/Sabre/TagsPlugin.php"> <NullableReturnStatement occurrences="1"> |