@@ -73,7 +73,7 @@ public function __construct(EntityManagerInterface $em, UserPasswordEncoderInter
73
73
/**
74
74
* {@inheritdoc}
75
75
*/
76
- protected function configure ()
76
+ protected function configure (): void
77
77
{
78
78
$ this
79
79
->setDescription ('Creates users and stores them in the database ' )
@@ -92,7 +92,7 @@ protected function configure()
92
92
* This optional method is the first one executed for a command after configure()
93
93
* and is useful to initialize properties based on the input arguments and options.
94
94
*/
95
- protected function initialize (InputInterface $ input , OutputInterface $ output )
95
+ protected function initialize (InputInterface $ input , OutputInterface $ output ): void
96
96
{
97
97
// SymfonyStyle is an optional feature that Symfony provides so you can
98
98
// apply a consistent look to the commands of your application.
@@ -167,7 +167,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
167
167
* This method is executed after interact() and initialize(). It usually
168
168
* contains the logic to execute to complete this command task.
169
169
*/
170
- protected function execute (InputInterface $ input , OutputInterface $ output )
170
+ protected function execute (InputInterface $ input , OutputInterface $ output ): void
171
171
{
172
172
$ stopwatch = new Stopwatch ();
173
173
$ stopwatch ->start ('add-user-command ' );
@@ -203,7 +203,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
203
203
}
204
204
}
205
205
206
- private function validateUserData ($ username , $ plainPassword , $ email , $ fullName )
206
+ private function validateUserData ($ username , $ plainPassword , $ email , $ fullName ): void
207
207
{
208
208
// first check if a user with the same username already exists.
209
209
$ existingUser = $ this ->users ->findOneBy (['username ' => $ username ]);
0 commit comments