Skip to content

Commit

Permalink
Commandd::execute must return integer type
Browse files Browse the repository at this point in the history
  • Loading branch information
XWB committed Nov 27, 2019
1 parent 21fe37a commit 75f9bfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Command/FixAcesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function configure()
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$foundThreadAcls = 0;
$foundCommentAcls = 0;
Expand Down Expand Up @@ -172,5 +172,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln("Found {$foundThreadAcls} Thread Acl Entries, Created {$createdThreadAcls} Thread Acl Entries");
$output->writeln("Found {$foundCommentAcls} Comment Acl Entries, Created {$createdCommentAcls} Comment Acl Entries");
$output->writeln("Found {$foundVoteAcls} Vote Acl Entries, Created {$createdVoteAcls} Vote Acl Entries");

return 0;
}
}
4 changes: 3 additions & 1 deletion Command/InstallAcesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function configure()
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
if ($input->getOption('flush')) {
$output->writeln('Flushing Global ACEs');
Expand All @@ -101,5 +101,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->voteAcl->installFallbackAcl();

$output->writeln('Global ACEs have been installed.');

return 0;
}
}

0 comments on commit 75f9bfb

Please sign in to comment.