From 17612afd876f4018cda15adecd8e16ee202b5083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 16 Feb 2022 00:08:06 +0100 Subject: [PATCH] fix phpstan issues --- phpstan-critical.neon | 5 ----- src/Bundle/ChillPersonBundle/Household/MembersEditor.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/phpstan-critical.neon b/phpstan-critical.neon index 632356aa6..262d3012f 100644 --- a/phpstan-critical.neon +++ b/phpstan-critical.neon @@ -25,11 +25,6 @@ parameters: count: 1 path: src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php - - - message: "#^Access to an undefined property Chill\\\\PersonBundle\\\\Household\\\\MembersEditorFactory\\:\\:\\$validator\\.$#" - count: 2 - path: src/Bundle/ChillPersonBundle/Household/MembersEditorFactory.php - - message: "#^Variable variables are not allowed\\.$#" count: 4 diff --git a/src/Bundle/ChillPersonBundle/Household/MembersEditor.php b/src/Bundle/ChillPersonBundle/Household/MembersEditor.php index 0fad51b7c..e327efbab 100644 --- a/src/Bundle/ChillPersonBundle/Household/MembersEditor.php +++ b/src/Bundle/ChillPersonBundle/Household/MembersEditor.php @@ -140,7 +140,7 @@ class MembersEditor ->matching($criteria); foreach ($participations as $participation) { - $this->events[] = $event = new PersonAddressMoveEvent(); + $this->events[] = $event = new PersonAddressMoveEvent($person); $event->setPreviousMembership($participation); $participation->setEndDate($date); $this->membershipsAffected[] = $participation;