From ea10565e17c38c49cbdee4d8bb3d1c5e1d5acdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 28 Mar 2023 23:20:37 +0200 Subject: [PATCH] DX: [rector] apply rector rule InlineConstructorDefaultToPropertyRector --- src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php index 7168a9703..b691c4e89 100644 --- a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php +++ b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php @@ -59,7 +59,7 @@ class PrivacyEvent extends Event /** * @var array */ - private $persons; + private $persons = []; /** * PrivacyEvent constructor. @@ -68,7 +68,6 @@ class PrivacyEvent extends Event { $this->person = $person; $this->args = $args; - $this->persons = []; } public function addPerson(Person $person)