[ticket/17347] Fix psalm error for user delete by ID command

PHPBB-17347
This commit is contained in:
Marc Alexander 2024-07-01 21:33:54 +02:00
parent 82de8c7f5f
commit c82dd8bf54
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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)