interface Entity {}
/** @template E of Entity */
interface Repository {
/**
* @template F of E
* @param F $entity
* @return F
*/
function store(Entity $entity): Entity;
}
PHPDoc tag @param for parameter $entity with type F is not subtype of native type Entity.
PHPDoc tag @return with type mixed is not subtype of native type Entity.