Skip to content

Commit e292686

Browse files
authored
Merge pull request #551 from dmitryuk/fix-selectable
Refine return type annotation in Selectable interface for improved type hints for IDE
2 parents 5543b8c + 62ac2d5 commit e292686

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Selectable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ interface Selectable
2525
* Selects all elements from a selectable that match the expression and
2626
* returns a new collection containing these elements and preserved keys.
2727
*
28-
* @return ReadableCollection<mixed>&Selectable<mixed>
29-
* @phpstan-return ReadableCollection<TKey,T>&Selectable<TKey,T>
28+
* @return ReadableCollection<TKey,T>
3029
*/
3130
public function matching(Criteria $criteria): ReadableCollection;
3231
}

0 commit comments

Comments
 (0)