mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-31 03:53:49 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user