diff --git a/bundle/API/Repository/Values/Content/Query/Criterion/TagId.php b/bundle/API/Repository/Values/Content/Query/Criterion/TagId.php index 50b8f31a..54f679f5 100644 --- a/bundle/API/Repository/Values/Content/Query/Criterion/TagId.php +++ b/bundle/API/Repository/Values/Content/Query/Criterion/TagId.php @@ -21,7 +21,7 @@ final class TagId extends Criterion * @param int|int[] $value One or more tag IDs that must be matched * @param string|null $target Field definition identifier to use */ - public function __construct(int|array $value, ?string $target = null) + public function __construct(array|int $value, ?string $target = null) { parent::__construct($target, null, $value); } diff --git a/bundle/API/Repository/Values/Content/Query/Criterion/TagKeyword.php b/bundle/API/Repository/Values/Content/Query/Criterion/TagKeyword.php index 484133be..84c3ffa7 100644 --- a/bundle/API/Repository/Values/Content/Query/Criterion/TagKeyword.php +++ b/bundle/API/Repository/Values/Content/Query/Criterion/TagKeyword.php @@ -25,7 +25,7 @@ final class TagKeyword extends Criterion * @param string|null $target Field definition identifier to use * @param \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Value|null $valueData */ - public function __construct(?string $operator, string|array $value, ?string $target = null, ?Value $valueData = null) + public function __construct(?string $operator, array|string $value, ?string $target = null, ?Value $valueData = null) { parent::__construct($target, $operator, $value, $valueData); } diff --git a/bundle/Core/Repository/TagsService.php b/bundle/Core/Repository/TagsService.php index 91806486..e154769b 100644 --- a/bundle/Core/Repository/TagsService.php +++ b/bundle/Core/Repository/TagsService.php @@ -780,7 +780,7 @@ public function sudo(callable $callback, ?TagsServiceInterface $outerTagsService * * @return bool|mixed[] if limitations are on this function an array of limitations is returned */ - public function hasAccess(string $module, string $function, ?UserReference $userReference = null): bool|array + public function hasAccess(string $module, string $function, ?UserReference $userReference = null): array|bool { // Full access if sudo nesting level is set by sudo method if ($this->sudoNestingLevel > 0) {