refactor: remove unused event arguments from entity listener methods

- Simplify method signatures by removing `$eventArgs` parameter
This commit is contained in:
2025-09-09 16:01:17 +02:00
parent af7d635714
commit 2433737df0

View File

@@ -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);
}