mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -28,11 +28,11 @@ use function spl_object_hash;
|
||||
|
||||
class MembersEditor
|
||||
{
|
||||
public const VALIDATION_GROUP_AFFECTED = 'household_memberships';
|
||||
final public const VALIDATION_GROUP_AFFECTED = 'household_memberships';
|
||||
|
||||
public const VALIDATION_GROUP_COMPOSITION = 'household_composition';
|
||||
final public const VALIDATION_GROUP_COMPOSITION = 'household_composition';
|
||||
|
||||
public const VALIDATION_GROUP_CREATED = 'household_memberships_created';
|
||||
final public const VALIDATION_GROUP_CREATED = 'household_memberships_created';
|
||||
|
||||
private array $events = [];
|
||||
|
||||
@@ -42,7 +42,7 @@ class MembersEditor
|
||||
|
||||
private array $persistables = [];
|
||||
|
||||
public function __construct(private ValidatorInterface $validator, private ?\Chill\PersonBundle\Entity\Household\Household $household, private EventDispatcherInterface $eventDispatcher)
|
||||
public function __construct(private readonly ValidatorInterface $validator, private readonly ?\Chill\PersonBundle\Entity\Household\Household $household, private readonly EventDispatcherInterface $eventDispatcher)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@ use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
|
||||
|
||||
class MembersEditorFactory
|
||||
{
|
||||
public function __construct(private EventDispatcherInterface $eventDispatcher, private ValidatorInterface $validator)
|
||||
public function __construct(private readonly EventDispatcherInterface $eventDispatcher, private readonly ValidatorInterface $validator)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user