Skip to content

Commit

Permalink
[TASK] Add missing return type for command's execute method (#2082)
Browse files Browse the repository at this point in the history
Releases: main, 11.5
  • Loading branch information
brotkrueml authored Aug 19, 2022
1 parent 64d814e commit e1baaf3
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Documentation/ApiOverview/CommandControllers/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,20 @@ This argument can be retrieved with :php:`$input->getArgument()`, the options wi
// use Symfony\Component\Console\Input\InputInterface;
// use Symfony\Component\Console\Output\OutputInterface;
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
// ...
// ...
if ($input->getArgument('wizardName')) {
// ...
}
if ($input->getOption('brute-force')) {
// ...
if ($input->getArgument('wizardName')) {
// ...
}
}
if ($input->getOption('brute-force')) {
// ...
}
// ...
}
.. _deactivating-the-command-in-scheduler:
.. _schedulable:
Expand Down Expand Up @@ -269,10 +267,11 @@ A backend user can be initialized with this call inside :php:`execute()` method:
// use Symfony\Component\Console\Input\InputInterface;
// use Symfony\Component\Console\Output\OutputInterface;
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
// ..
// ...
Bootstrap::initializeBackendAuthentication();
// ...
}
This is necessary when using :ref:`DataHandler <datahandler-basics>`
Expand Down

0 comments on commit e1baaf3

Please sign in to comment.