apply rector rules: php up to php82

This commit is contained in:
2023-07-19 23:16:01 +02:00
parent 7b637d1287
commit 023a29cb78
744 changed files with 1369 additions and 1381 deletions

View File

@@ -34,23 +34,19 @@ use Symfony\Component\Security\Core\Security;
class CalendarVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
{
public const CREATE = 'CHILL_CALENDAR_CALENDAR_CREATE';
final public const CREATE = 'CHILL_CALENDAR_CALENDAR_CREATE';
public const DELETE = 'CHILL_CALENDAR_CALENDAR_DELETE';
final public const DELETE = 'CHILL_CALENDAR_CALENDAR_DELETE';
public const EDIT = 'CHILL_CALENDAR_CALENDAR_EDIT';
final public const EDIT = 'CHILL_CALENDAR_CALENDAR_EDIT';
public const SEE = 'CHILL_CALENDAR_CALENDAR_SEE';
final public const SEE = 'CHILL_CALENDAR_CALENDAR_SEE';
private AuthorizationHelperInterface $authorizationHelper;
private CenterResolverManagerInterface $centerResolverManager;
private VoterHelperInterface $voterHelper;
private readonly VoterHelperInterface $voterHelper;
public function __construct(
private Security $security,
VoterHelperFactoryInterface $voterHelperFactory
private readonly Security $security,
VoterHelperFactoryInterface $voterHelperFactory,
) {
$this->voterHelper = $voterHelperFactory
->generate(self::class)