-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
phpstan/phpstan-src
#1101Labels
Milestone
Description
Feature request
It would be nice to be able to have something like this
class Foo {}
interface Bar {}
/**
* @template TKey of Foo
*/
class Collection{}
/**
* @template TKey of Foo&Bar
* @extends Collection<TKey>
*/
class SubCollection extends Collection {}Actually, I have the error PHPDoc tag @template TKey for class SubCollection with bound type Bar&Foo is not supported.
Is there a workaround for that ?
LastDragon-rumvorisek