Skip to content

Commit d64ef47

Browse files
mehdibojrushlow
authored andcommitted
Change getter PHPDoc return on Collection
1 parent 164989f commit d64ef47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/ClassSourceManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ private function addCollectionRelation(BaseCollectionRelation $relation): void
682682
$collectionTypeHint,
683683
false,
684684
// add @return that advertises this as a collection of specific objects
685-
[sprintf('@return %s|%s[]', $collectionTypeHint, $typeHint)]
685+
[sprintf('@return %s<int, %s>', $collectionTypeHint, $typeHint)]
686686
);
687687

688688
$argName = Str::pluralCamelCaseToSingular($relation->getPropertyName());

0 commit comments

Comments
 (0)