I am currently facing an issue in Yii2 and PhpStorm regarding PHPDoc not passing variables from the controller to the views. I have checked the documentation, but I couldn't find a solution to my problem.
To provide a bit of context, I am using Yii2 framework for my project and PhpStorm as my IDE. In my controller, I have defined some variables that I want to pass to my view. However, when I try to access these variables in my view, I am not getting any autocomplete suggestions or type hints.
I have tried using PHPDoc comments in the controller to specify the variable type and provide a description, but it is not working as expected. PhpStorm is not recognizing these PHPDoc comments and thus, not providing any suggestions or type hints.
I have also made sure that the PHPDoc comments are properly formatted and the variable names in the comments match the actual variable names in the code.
I have tried searching for a solution online, but I couldn't find any specific information regarding this issue. I have also checked the Yii2 documentation and the PhpStorm documentation, but I couldn't find any helpful resources.
I would really appreciate any guidance or suggestions on how to make PHPDoc work with variables in Yii2 and PhpStorm. How can I ensure that my PHPDoc comments are properly recognized and the variables are passed to the views with autocomplete suggestions and type hints?
Thank you in advance for your help!