apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -26,16 +26,16 @@ use function in_array;
class HouseholdVoter extends Voter implements ProvideRoleHierarchyInterface, ChillVoterInterface
{
public const EDIT = 'CHILL_PERSON_HOUSEHOLD_EDIT';
final public const EDIT = 'CHILL_PERSON_HOUSEHOLD_EDIT';
public const SEE = 'CHILL_PERSON_HOUSEHOLD_SEE';
final public const SEE = 'CHILL_PERSON_HOUSEHOLD_SEE';
/**
* @deprecated use @see{self::SEE} instead
*/
public const SHOW = self::SEE;
final public const SHOW = self::SEE;
public const STATS = 'CHILL_PERSON_HOUSEHOLD_STATS';
final public const STATS = 'CHILL_PERSON_HOUSEHOLD_STATS';
private const ALL = [
self::SEE,
@@ -43,9 +43,9 @@ class HouseholdVoter extends Voter implements ProvideRoleHierarchyInterface, Chi
self::STATS,
];
private VoterHelperInterface $helper;
private readonly VoterHelperInterface $helper;
public function __construct(private Security $security, VoterHelperFactoryInterface $voterHelperFactory)
public function __construct(private readonly Security $security, VoterHelperFactoryInterface $voterHelperFactory)
{
$this->helper = $voterHelperFactory
->generate(self::class)