Skip to content

Commit 4c49e4e

Browse files
committed
Change getter PHPDoc return on Collection
1 parent 716eee9 commit 4c49e4e

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
@@ -662,7 +662,7 @@ private function addCollectionRelation(BaseCollectionRelation $relation): void
662662
$collectionTypeHint,
663663
false,
664664
// add @return that advertises this as a collection of specific objects
665-
[sprintf('@return %s|%s[]', $collectionTypeHint, $typeHint)]
665+
[sprintf('@return %s<int, %s>', $collectionTypeHint, $typeHint)]
666666
);
667667

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

0 commit comments

Comments
 (0)