@@ -52,7 +52,7 @@ public function getSubscribedEvents(): array
5252 /**
5353 * Pre persist listener based on doctrine common.
5454 */
55- public function prePersist (LifecycleEventArgs $ args )
55+ public function prePersist (LifecycleEventArgs $ args ): void
5656 {
5757 $ object = $ args ->getObject ();
5858 if ($ object instanceof UserInterface) {
@@ -63,7 +63,7 @@ public function prePersist(LifecycleEventArgs $args)
6363 /**
6464 * Pre update listener based on doctrine common.
6565 */
66- public function preUpdate (LifecycleEventArgs $ args )
66+ public function preUpdate (LifecycleEventArgs $ args ): void
6767 {
6868 $ object = $ args ->getObject ();
6969 if ($ object instanceof UserInterface) {
@@ -75,7 +75,7 @@ public function preUpdate(LifecycleEventArgs $args)
7575 /**
7676 * Updates the user properties.
7777 */
78- private function updateUserFields (UserInterface $ user )
78+ private function updateUserFields (UserInterface $ user ): void
7979 {
8080 $ this ->canonicalFieldsUpdater ->updateCanonicalFields ($ user );
8181 $ this ->passwordUpdater ->hashPassword ($ user );
@@ -84,7 +84,7 @@ private function updateUserFields(UserInterface $user)
8484 /**
8585 * Recomputes change set for Doctrine implementations not doing it automatically after the event.
8686 */
87- private function recomputeChangeSet (ObjectManager $ om , UserInterface $ user )
87+ private function recomputeChangeSet (ObjectManager $ om , UserInterface $ user ): void
8888 {
8989 $ meta = $ om ->getClassMetadata (get_class ($ user ));
9090
0 commit comments