Skip to content

Commit 5929a5e

Browse files
author
xmarchegay
committed
#57 make sure the arguments are not empty
1 parent 8f13ae9 commit 5929a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/UserCreateCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5656
{
5757
$style = new SymfonyStyle($input, $output);
5858

59-
if ($input->getArgument('email')) {
59+
if (!empty($input->getArgument('email'))) {
6060
$username = $input->getArgument('email');
6161
} else {
6262
$username = $this->ask('Please enter the email.', $style, [new Email()]);
6363
}
6464

65-
if ($input->getArgument('password')) {
65+
if (!empty($input->getArgument('password'))) {
6666
$password = $input->getArgument('password');
6767
} else {
6868
$password = $this->askPassword(

0 commit comments

Comments
 (0)