From e9566c0182eb3e0881810c4f9ed5c799128c33ce Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Sun, 1 Oct 2017 12:53:18 +0200 Subject: [PATCH] fixing add user password validation --- src/Command/AddUserCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Command/AddUserCommand.php b/src/Command/AddUserCommand.php index f9cf05692..0d8cc0115 100644 --- a/src/Command/AddUserCommand.php +++ b/src/Command/AddUserCommand.php @@ -44,7 +44,11 @@ */ class AddUserCommand extends Command { + /** + * @var SymfonyStyle + */ private $io; + private $entityManager; private $passwordEncoder; private $validator; @@ -130,7 +134,7 @@ protected function interact(InputInterface $input, OutputInterface $output) if (null !== $password) { $this->io->text(' > Password: '.str_repeat('*', mb_strlen($password))); } else { - $password = $this->io->askHidden('Password (your type will be hidden)', null, [$this->validator, 'validatePassword']); + $password = $this->io->askHidden('Password (your type will be hidden)', [$this->validator, 'validatePassword']); $input->setArgument('password', $password); }