Another thing about this issue, if I fill <..., ...>
it works in the function test2
but not inside MyClass2
:
/**
* @param MyClass2<bool, bool> $x
*/
function test2($x) {
$t = $x->foo();
}
This is the test inside MyClass2
:
/**
* @extends MyClass1<ArrayObject, bool>
*/
class MyClass2 extends MyClass1
{
public function bar()
{
$t = $this->foo();
}
}
The goal is to have intelliSense (autocompletion) from MyClass2 with @extends
of course. The tests in the functions allow to debug this issue but I don't want to use Generics like this.