Fix phpstan things

This commit is contained in:
James Cole
2023-12-03 08:28:50 +01:00
parent d2a895ddda
commit c37a877f34
5 changed files with 10 additions and 10 deletions

View File

@@ -952,8 +952,8 @@ class OperatorQuerySearch implements SearchInterface
break;
case '-tag_is':
case 'tag_is_not':
$result = $this->tagRepository->searchTag($value);
if ($result->count() > 0) {
$result = $this->tagRepository->findByTag($value);
if (null !== $result) {
$this->excludeTags[] = $result->id;
$this->excludeTags = array_unique($this->excludeTags);
}