Skip to content

Commit

Permalink
Merge pull request #31178 from nextcloud/fix-dav-namespace-typo
Browse files Browse the repository at this point in the history
Fix typo in DAV namespace registration
  • Loading branch information
PVince81 authored Feb 15, 2022
2 parents 77ed32b + 46e9f6d commit acba237
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/SharesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function __construct(
* @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;
Expand Down
6 changes: 0 additions & 6 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -750,12 +750,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">
Expand Down

0 comments on commit acba237

Please sign in to comment.