mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 12:29:43 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -64,12 +64,12 @@ class BudgetElementVoter extends Voter implements ProvideRoleHierarchyInterface
|
||||
return self::ROLES;
|
||||
}
|
||||
|
||||
protected function supports($attribute, $subject)
|
||||
protected function supports(string $attribute, mixed $subject): bool
|
||||
{
|
||||
return $this->voter->supports($attribute, $subject);
|
||||
}
|
||||
|
||||
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
|
||||
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool
|
||||
{
|
||||
if (
|
||||
$subject instanceof Person
|
||||
|
Reference in New Issue
Block a user