UpdateSubscriptionsCommand code quality fix.

This commit is contained in:
Alexey Skobkin 2017-01-09 06:03:29 +03:00
parent abb320920a
commit 628916d69b

View file

@ -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();
}
}