UpdateSubscriptionsCommand code quality fix.

This commit is contained in:
Alexey Skobkin 2017-01-09 05:53:58 +03:00
parent 6c6fe5a65d
commit abb320920a
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
* @param InputInterface $input * @param InputInterface $input
* @param OutputInterface $output * @param OutputInterface $output
* *
* @return bool * @return int
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
@ -250,7 +250,7 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
$usersForUpdate = []; $usersForUpdate = [];
/** @var Subscription $subscription */ /** @var Subscription $subscription */
foreach ($serviceUser->getSubscribers() as $subscription) { foreach ($serviceUser->getSubscribers()->getIterator() as $subscription) {
$usersForUpdate[] = $subscription->getSubscriber(); $usersForUpdate[] = $subscription->getSubscriber();
} }
} }