UpdateSubscriptionsCommand code quality fix.
This commit is contained in:
parent
abb320920a
commit
628916d69b
|
@ -250,7 +250,7 @@ class UpdateSubscriptionsCommand extends ContainerAwareCommand
|
|||
$usersForUpdate = [];
|
||||
|
||||
/** @var Subscription $subscription */
|
||||
foreach ($serviceUser->getSubscribers()->getIterator() as $subscription) {
|
||||
foreach ((array) $serviceUser->getSubscribers() as $subscription) {
|
||||
$usersForUpdate[] = $subscription->getSubscriber();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue