Skip to content

Commit e62210d

Browse files
committed
bug #646 Use validator on interactive mode (yceruto)
This PR was merged into the master branch. Discussion ---------- Use validator on interactive mode Fixing invalid callable argument. Commits ------- 3c4538d Use validator on interactive mode
2 parents fe8f4ab + 3c4538d commit e62210d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/DeleteUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
100100
'',
101101
]);
102102

103-
$username = $this->io->ask('Username', null, [$this, 'usernameValidator']);
103+
$username = $this->io->ask('Username', null, [$this->validator, 'validateUsername']);
104104
$input->setArgument('username', $username);
105105
}
106106

0 commit comments

Comments
 (0)