In the new version of
yii2support for phpStorm , autocompletion has appeared for arrays used throughout Yii to initialize objects. The arrays are accepted by both the constructor of the base Object class and the Yii :: createObject method. This is a very convenient functionality, the convenience of which was limited by the lack of support in the IDE. Now this problem is solved, and not only autocompletion, but also pop-up help, transitions to the declaration and back, renaming properties, correcting typos works.
Autocompletion works in the following cases:
- In the array passed to the object constructor and Yii :: createObject.
- In arrays that have a key with a value pointing to a class: FQN string, :: className () or :: class
- Standard keys in the config folder
- Widgets
- The "columns" key in the GridView
Support for view and i18n has already been added.
Work has begun on the functionality related to the database, for example, autocompletion for the ActiveRecord :: find () method.
')
If there are other wishes, write in the comments.
We hope that your work will become more convenient, and Yii more popular.