You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example below the method Test2\B\getClient() doesn't recognize a reference in it's declaration, while same reference works fine for standalone variable $x:
<?phpnamespaceTest {
classA
{
/** @var = [ * 'name' => '', * 'phone' => '', * ] */public$client;
}
}
namespaceTest2 {
classB
{
/** @return = \Test\A::$client */publicfunctiongetClient() {
return [
'' // 'name' or 'phone' is expected, but there is no suggestions
];
}
}
}
/** @var $x = \Test\A::$client */$x = [
// here suggestion does work
];
The text was updated successfully, but these errors were encountered:
In the example below the method
Test2\B\getClient()
doesn't recognize a reference in it's declaration, while same reference works fine for standalone variable$x
:The text was updated successfully, but these errors were encountered: