summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-02-14 20:57:30 +0100
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-02-17 13:19:00 +0000
commit3e0b7fb49e5c14ad0f11f6f8e50153c4d19a7072 (patch)
treeeafc2e5e70cd5a512a810d12ee7293a501e1e4b1
parentbab0881f986de45557705f9cb9c99a035982f104 (diff)
downloadnextcloud-server-3e0b7fb49e5c14ad0f11f6f8e50153c4d19a7072.tar.gz
nextcloud-server-3e0b7fb49e5c14ad0f11f6f8e50153c4d19a7072.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.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">