diff --git a/src/Command/DeleteUserCommand.php b/src/Command/DeleteUserCommand.php index 6a8987f56..4185debad 100644 --- a/src/Command/DeleteUserCommand.php +++ b/src/Command/DeleteUserCommand.php @@ -100,7 +100,7 @@ protected function interact(InputInterface $input, OutputInterface $output) '', ]); - $username = $this->io->ask('Username', null, [$this, 'usernameValidator']); + $username = $this->io->ask('Username', null, [$this->validator, 'validateUsername']); $input->setArgument('username', $username); }