Skip to content

Commit

Permalink
Update CS
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Nov 6, 2023
1 parent c9df950 commit 9882b88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion bundle/Core/Repository/TagsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9882b88

Please sign in to comment.