@@ -73,7 +73,7 @@ public function __construct(EntityManagerInterface $em, UserPasswordEncoderInter
7373 /**
7474 * {@inheritdoc}
7575 */
76- protected function configure ()
76+ protected function configure (): void
7777 {
7878 $ this
7979 ->setDescription ('Creates users and stores them in the database ' )
@@ -92,7 +92,7 @@ protected function configure()
9292 * This optional method is the first one executed for a command after configure()
9393 * and is useful to initialize properties based on the input arguments and options.
9494 */
95- protected function initialize (InputInterface $ input , OutputInterface $ output )
95+ protected function initialize (InputInterface $ input , OutputInterface $ output ): void
9696 {
9797 // SymfonyStyle is an optional feature that Symfony provides so you can
9898 // apply a consistent look to the commands of your application.
@@ -167,7 +167,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
167167 * This method is executed after interact() and initialize(). It usually
168168 * contains the logic to execute to complete this command task.
169169 */
170- protected function execute (InputInterface $ input , OutputInterface $ output )
170+ protected function execute (InputInterface $ input , OutputInterface $ output ): void
171171 {
172172 $ stopwatch = new Stopwatch ();
173173 $ stopwatch ->start ('add-user-command ' );
@@ -203,7 +203,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
203203 }
204204 }
205205
206- private function validateUserData ($ username , $ plainPassword , $ email , $ fullName )
206+ private function validateUserData ($ username , $ plainPassword , $ email , $ fullName ): void
207207 {
208208 // first check if a user with the same username already exists.
209209 $ existingUser = $ this ->users ->findOneBy (['username ' => $ username ]);
0 commit comments