Skip to content

Commit

Permalink
fix: PHP 7.4 compat
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed May 16, 2023
1 parent 0612ad2 commit 2368546
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getChildren(): array {
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) {
Expand Down
5 changes: 4 additions & 1 deletion lib/private/SystemTag/SystemTagsInFilesDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
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(
Expand Down

0 comments on commit 2368546

Please sign in to comment.