upgrade php-cs-fixer to 3.47.0

This commit is contained in:
2024-01-22 12:14:39 +01:00
parent fdfc3fb7ec
commit 27ce322690
58 changed files with 114 additions and 113 deletions

View File

@@ -61,7 +61,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface
*
* @return User[]
*/
public function findUsersReaching(string $role, array|\Chill\MainBundle\Entity\Center $center, array|\Chill\MainBundle\Entity\Scope $scope = null, bool $onlyEnabled = true): array
public function findUsersReaching(string $role, array|Center $center, array|Scope $scope = null, bool $onlyEnabled = true): array
{
return $this->userACLAwareRepository
->findUsersByReachedACL($role, $center, $scope, $onlyEnabled);
@@ -126,7 +126,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface
*
* @return Scope[]
*/
public function getReachableCircles(UserInterface $user, string $role, array|\Chill\MainBundle\Entity\Center $center)
public function getReachableCircles(UserInterface $user, string $role, array|Center $center)
{
$scopes = [];
@@ -168,7 +168,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface
*
* @param Center|Center[] $center May be an array of center
*/
public function userCanReachCenter(User $user, array|\Chill\MainBundle\Entity\Center $center): bool
public function userCanReachCenter(User $user, array|Center $center): bool
{
if ($center instanceof \Traversable) {
foreach ($center as $c) {

View File

@@ -37,7 +37,7 @@ final readonly class ScopeResolverDispatcher
/**
* @return Scope|iterable<Scope>|Scope|null
*/
public function resolveScope(mixed $entity, ?array $options = []): null|\Chill\MainBundle\Entity\Scope|iterable
public function resolveScope(mixed $entity, ?array $options = []): null|iterable|Scope
{
foreach ($this->resolvers as $resolver) {
if ($resolver->supports($entity, $options)) {