Hi,
Since version 1.43.14858 I have this issue where hovering on a function does not display its information also does not get picked up as a reference when I try to "Find All References" this happens when the code is specifically written as below:
$this->_m2mModel = $this->_registry->container->get('app.M2m');
$result = $this->_m2mModel->read(['user' => $params['user'], 'pass' => $params['pass']]);
In the above sample $this->_m2mModel
has the type M2m and the read()
function hover will display the correct information but as soon as the the line $this->_m2mModel = $this->_registry->container->get('app.M2m');
is added above it which fetches its instance, the function read()
looses its reference and VSCode displays nothing on hover and does not pick it up using "Find All References".
Its like the expression $this->_registry->container->get('app.M2m');
is killing the M2m type given to $this->_m2mModel
, the type is assigned as follows:
/**
* Link to M2M Model
* @var M2m $_m2mModel
*/
private $_m2mModel;
Note: $this->_registry->container->get('app.M2m');
has the return type of mixed