From 2433737df0b6bd5740abe0c19406f486af820fab Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 9 Sep 2025 16:01:17 +0200 Subject: [PATCH] refactor: remove unused event arguments from entity listener methods - Simplify method signatures by removing `$eventArgs` parameter --- ...mpanyingPeriodSocialIssueConsistencyEntityListener.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/AccompanyingPeriod/SocialIssueConsistency/AccompanyingPeriodSocialIssueConsistencyEntityListener.php b/src/Bundle/ChillPersonBundle/AccompanyingPeriod/SocialIssueConsistency/AccompanyingPeriodSocialIssueConsistencyEntityListener.php index 0a40f5df3..e1c4e65de 100644 --- a/src/Bundle/ChillPersonBundle/AccompanyingPeriod/SocialIssueConsistency/AccompanyingPeriodSocialIssueConsistencyEntityListener.php +++ b/src/Bundle/ChillPersonBundle/AccompanyingPeriod/SocialIssueConsistency/AccompanyingPeriodSocialIssueConsistencyEntityListener.php @@ -27,22 +27,22 @@ use Doctrine\ORM\Event\PreUpdateEventArgs; */ final class AccompanyingPeriodSocialIssueConsistencyEntityListener { - public function prePersist(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity, PrePersistEventArgs $eventArgs): void + public function prePersist(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity): void { $this->ensureConsistencyEntity($entity); } - public function prePersistAccompanyingPeriod(AccompanyingPeriod $period, PrePersistEventArgs $eventArgs): void + public function prePersistAccompanyingPeriod(AccompanyingPeriod $period): void { $this->ensureConsistencyAccompanyingPeriod($period); } - public function preUpdate(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity, PreUpdateEventArgs $eventArgs): void + public function preUpdate(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity): void { $this->ensureConsistencyEntity($entity); } - public function preUpdateAccompanyingPeriod(AccompanyingPeriod $period, PreUpdateEventArgs $eventArgs): void + public function preUpdateAccompanyingPeriod(AccompanyingPeriod $period): void { $this->ensureConsistencyAccompanyingPeriod($period); }