summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-03-09 14:43:17 +0100
committerGitHub <noreply@github.com>2022-03-09 14:43:17 +0100
commit16ebf8546b3928ab9212ec29f345694f0dd2d8d5 (patch)
tree9269f5080443639abc1abc67d504ce01c09d4d4c
parent8fd90161cee8d47ae33c28212e3c68523aa5ddc0 (diff)
parent3e0b7fb49e5c14ad0f11f6f8e50153c4d19a7072 (diff)
downloadnextcloud-server-16ebf8546b3928ab9212ec29f345694f0dd2d8d5.tar.gz
nextcloud-server-16ebf8546b3928ab9212ec29f345694f0dd2d8d5.zip
Merge pull request #31183 from nextcloud/backport/31178/stable23
[stable23] Fix typo in DAV namespace registration
-rw-r--r--apps/dav/lib/Connector/Sabre/SharesPlugin.php2
-rw-r--r--build/psalm-baseline.xml6
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 cad8e6a1c06..13d46ec08bd 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -760,12 +760,6 @@
<UndefinedFunction occurrences="1">
<code>\Sabre\Uri\split($sabreNode-&gt;getPath())</code>
</UndefinedFunction>
- <UndefinedPropertyAssignment occurrences="1">
- <code>$server-&gt;xml-&gt;namespacesMap</code>
- </UndefinedPropertyAssignment>
- <UndefinedPropertyFetch occurrences="1">
- <code>$server-&gt;xml-&gt;namespacesMap</code>
- </UndefinedPropertyFetch>
</file>
<file src="apps/dav/lib/Connector/Sabre/TagsPlugin.php">
<NullableReturnStatement occurrences="1">