mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -36,7 +36,7 @@ use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
class AccompanyingPeriodPrivacyEvent extends Event
|
||||
{
|
||||
public const ACCOMPANYING_PERIOD_PRIVACY_EVENT = 'chill_person.accompanying_period_privacy_event';
|
||||
final public const ACCOMPANYING_PERIOD_PRIVACY_EVENT = 'chill_person.accompanying_period_privacy_event';
|
||||
|
||||
public function __construct(protected $period, protected $args = [])
|
||||
{
|
||||
|
@@ -44,7 +44,7 @@ use function count;
|
||||
*/
|
||||
class PrivacyEvent extends Event
|
||||
{
|
||||
public const PERSON_PRIVACY_EVENT = 'chill_person.privacy_event';
|
||||
final public const PERSON_PRIVACY_EVENT = 'chill_person.privacy_event';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
@@ -54,7 +54,7 @@ class PrivacyEvent extends Event
|
||||
/**
|
||||
* PrivacyEvent constructor.
|
||||
*/
|
||||
public function __construct(private Person $person, private array $args = ['action' => 'show'])
|
||||
public function __construct(private readonly Person $person, private readonly array $args = ['action' => 'show'])
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user