Skip to content

Commit

Permalink
Fix return type of Collection::key()
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag authored Apr 10, 2019
1 parent fcf1b00 commit 6aab75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Common/Collections/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public function last();
/**
* Gets the key/index of the element at the current iterator position.
*
* @return int|string
* @return int|string|null
*
* @psalm-return TKey
* @psalm-return TKey|null
*/
public function key();

Expand Down

0 comments on commit 6aab75b

Please sign in to comment.