UpdateSubscriptionsCommand code quality fix.

This commit is contained in:
Alexey Skobkin 2017-01-09 05:53:58 +03:00
parent 6c6fe5a65d
commit abb320920a

View file

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