mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix: PHP 7.4 compat
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
0612ad250e
commit
2368546883
2 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue