fix: PHP 7.4 compat

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2023-05-16 13:12:10 +02:00
parent 0612ad250e
commit 2368546883
No known key found for this signature in database
GPG key ID: 7424F1874854DF23
2 changed files with 5 additions and 2 deletions

View file

@ -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) {

View file

@ -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(