Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Override start method of \Sabre\DAV\Server to remove exception output #48176

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/dav/lib/Connector/Sabre/FilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,13 @@
*
* @param PropFind $propFind
* @param \Sabre\DAV\INode $node
* @return void

Check failure on line 277 in apps/dav/lib/Connector/Sabre/FilesPlugin.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

InvalidReturnType

apps/dav/lib/Connector/Sabre/FilesPlugin.php:277:13: InvalidReturnType: The declared return type 'void' for OCA\DAV\Connector\Sabre\FilesPlugin::handleGetProperties is incorrect, got 'never' (see https://psalm.dev/011)
*/
public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node) {
$httpRequest = $this->server->httpRequest;

throw new NotFound(' does not exist');

if ($node instanceof \OCA\DAV\Connector\Sabre\Node) {
/**
* This was disabled, because it made dir listing throw an exception,
Expand Down
Loading