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:
<?php
namespace Test {
class A
{
/** @var = [
* 'name' => '',
* 'phone' => '',
* ]
*/
public $client;
}
}
namespace Test2 {
class B
{
/** @return = \Test\A::$client */
public function getClient() {
return [
'' // 'name' or 'phone' is expected, but there is no suggestions
];
}
}
}
/** @var $x = \Test\A::$client */
$x = [
// here suggestion does work
];
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
: