mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -97,9 +97,7 @@ class HouseholdVoter extends Voter implements ProvideRoleHierarchyInterface, Chi
|
||||
|
||||
private function checkAssociatedMembersRole(Household $household, string $attribute): bool
|
||||
{
|
||||
foreach ($household->getCurrentMembers()->map(static function (HouseholdMember $member) {
|
||||
return $member->getPerson();
|
||||
}) as $person) {
|
||||
foreach ($household->getCurrentMembers()->map(static fn(HouseholdMember $member) => $member->getPerson()) as $person) {
|
||||
if ($this->security->isGranted($attribute, $person)) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user