apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -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 = [])
{

View File

@@ -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'])
{
}