- Edited
Hi,
It is my first post with an issue so sorry if missing something.
I have a valid license so I think it is a priority support, correct?
I found a bug about Generics and extends attribute:
<?php
namespace DevSense;
use StdClass;
use ArrayObject;
/**
* @template T
* @template U
*/
class MyClass1
{
/**
* @return null|T|U
*/
public function foo()
{
return null;
}
}
/**
* @extends MyClass1<ArrayObject, bool>
*/
class MyClass2 extends MyClass1
{
}
/**
* @param MyClass1<StdClass, string> $x
*/
function test($x) {
$t = $x->foo();
}
/**
* @param MyClass2 $x
*/
function test2($x) {
$t = $x->foo();
}
The intelliSense works worrectly with MyClass1
inside the test
function ($t->...) but not inside the test2
function.
Thank you.