Skip to content

Commit

Permalink
Merge pull request #201 from muglug/patch-1
Browse files Browse the repository at this point in the history
Return static for createFrom and filter
  • Loading branch information
Ocramius authored Jun 9, 2019
2 parents d2ae4ef + 5945173 commit c5e0bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Common/Collections/ArrayCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function first()
* @return static
*
* @psalm-param array<TKey,T> $elements
* @psalm-return ArrayCollection<TKey,T>
* @psalm-return static<TKey,T>
*/
protected function createFrom(array $elements)
{
Expand Down Expand Up @@ -323,7 +323,7 @@ public function map(Closure $func)
*
* @return static
*
* @psalm-return ArrayCollection<TKey,T>
* @psalm-return static<TKey,T>
*/
public function filter(Closure $p)
{
Expand Down

0 comments on commit c5e0bc1

Please sign in to comment.