-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed false positive about unreferenced template type in a parameter …
…with nested generics
- Loading branch information
1 parent
48aea56
commit 0725f5a
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Bug4641; | ||
|
||
interface IEntity | ||
{ | ||
|
||
} | ||
|
||
/** @template E of IEntity */ | ||
interface IRepository | ||
{ | ||
|
||
} | ||
|
||
interface I | ||
{ | ||
|
||
/** | ||
* @template E of IEntity | ||
* @template T of IRepository<E> | ||
* @template U | ||
* @phpstan-param class-string<T> $className | ||
* @phpstan-return T | ||
*/ | ||
function getRepository(string $className): IRepository; | ||
|
||
} |