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