Skip to content

Commit

Permalink
Merge pull request #102 from Mopolo/fix-repository-factory-typing
Browse files Browse the repository at this point in the history
Fix typing for factory
  • Loading branch information
vgreb authored Jan 9, 2025
2 parents 2e99f2b + 2525679 commit b2f0cb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Ting/Repository/RepositoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ public function __construct(
}

/**
* @param class-string<Repository<T>> $repositoryName
* @return Repository<T>
* @param class-string<R> $repositoryName
* @return R
* @template T of object
* @template R of Repository<T>
*/
public function get($repositoryName)
{
Expand Down

0 comments on commit b2f0cb3

Please sign in to comment.