New PHP 7.1 iterable return type for entities.
This commit is contained in:
parent
3f5e9bda5e
commit
69d72085d0
|
@ -204,7 +204,7 @@ class Comment
|
|||
/**
|
||||
* @return File[]|ArrayCollection
|
||||
*/
|
||||
public function getFiles()
|
||||
public function getFiles(): iterable
|
||||
{
|
||||
return $this->files;
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ class Comment
|
|||
/**
|
||||
* @return Comment[]|ArrayCollection
|
||||
*/
|
||||
public function getChildren()
|
||||
public function getChildren(): iterable
|
||||
{
|
||||
return $this->children;
|
||||
}
|
||||
|
|
|
@ -199,7 +199,7 @@ class Post
|
|||
*
|
||||
* @return File[]|ArrayCollection
|
||||
*/
|
||||
public function getFiles()
|
||||
public function getFiles(): iterable
|
||||
{
|
||||
return $this->files;
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ class Post
|
|||
*
|
||||
* @return PostTag[]|ArrayCollection
|
||||
*/
|
||||
public function getPostTags()
|
||||
public function getPostTags(): iterable
|
||||
{
|
||||
return $this->postTags;
|
||||
}
|
||||
|
@ -279,7 +279,7 @@ class Post
|
|||
*
|
||||
* @return Comment[]|ArrayCollection
|
||||
*/
|
||||
public function getComments()
|
||||
public function getComments(): iterable
|
||||
{
|
||||
return $this->comments;
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ class User
|
|||
/**
|
||||
* @return Subscription[]|ArrayCollection
|
||||
*/
|
||||
public function getSubscribers()
|
||||
public function getSubscribers(): iterable
|
||||
{
|
||||
return $this->subscribers;
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ class User
|
|||
/**
|
||||
* @return Subscription[]|ArrayCollection
|
||||
*/
|
||||
public function getSubscriptions()
|
||||
public function getSubscriptions(): iterable
|
||||
{
|
||||
return $this->subscriptions;
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ class User
|
|||
/**
|
||||
* @return SubscriptionEvent[]|ArrayCollection
|
||||
*/
|
||||
public function getNewSubscriberEvents()
|
||||
public function getNewSubscriberEvents(): iterable
|
||||
{
|
||||
return $this->newSubscriberEvents;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue