diff --git a/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php b/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php index b57e685e7e7..4f1d6c58566 100644 --- a/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php +++ b/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php @@ -86,7 +86,7 @@ class SystemTagsInUseCollection extends SimpleCollection { if ($user) { $userFolder = $this->rootFolder->getUserFolder($user->getUID()); } - } catch (NoUserException) { + } catch (NoUserException $e) { // will throw a Sabre exception in the next step. } if ($user === null || $userFolder === null) { diff --git a/lib/private/SystemTag/SystemTagsInFilesDetector.php b/lib/private/SystemTag/SystemTagsInFilesDetector.php index c9f26c58c02..a214bd77e7b 100644 --- a/lib/private/SystemTag/SystemTagsInFilesDetector.php +++ b/lib/private/SystemTag/SystemTagsInFilesDetector.php @@ -36,7 +36,10 @@ use OCP\Files\Search\ISearchBinaryOperator; use OCP\Files\Search\ISearchComparison; class SystemTagsInFilesDetector { - public function __construct(protected QuerySearchHelper $searchHelper) { + protected QuerySearchHelper $searchHelper; + + public function __construct(QuerySearchHelper $searchHelper) { + $this->searchHelper = $searchHelper; } public function detectAssignedSystemTagsIn(