UpdateSubscriptionsCommand code quality fix.
This commit is contained in:
parent
6c6fe5a65d
commit
abb320920a
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue