mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge pull request #6668 from marc1706/ticket/17347-master
[ticket/17347] Fix psalm error for user delete by ID command
This commit is contained in:
commit
5ede9fb149
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,7 @@ use phpbb\language\language;
|
|||
use phpbb\log\log_interface;
|
||||
use phpbb\user;
|
||||
use phpbb\user_loader;
|
||||
use Symfony\Component\Console\Helper\QuestionHelper;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
@ -192,6 +193,10 @@ class delete_id extends command
|
|||
protected function interact(InputInterface $input, OutputInterface $output): void
|
||||
{
|
||||
$helper = $this->getHelper('question');
|
||||
if (!$helper instanceof QuestionHelper)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$user_ids = $input->getArgument('user_ids');
|
||||
if (count($user_ids) > 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue