diff --git a/src/Cli/AddUserCommand.php b/src/Cli/AddUserCommand.php index 7ea8256..b63a0d2 100644 --- a/src/Cli/AddUserCommand.php +++ b/src/Cli/AddUserCommand.php @@ -27,7 +27,7 @@ class AddUserCommand extends Command $user->setActive(true); $user->setCreatedDate(new DateTime()); - if ($input->hasArgument('type')) { + if ($input->hasArgument('type') && $input->getArgument('type') !== null) { $user->setType($input->getArgument('type')); }