Closed feistiny closed 4 years ago
class User extends ActiveRecord { public static function find() { return new UserQuery(get_called_class()); } public function test(){ $user = User::find()->one(); $user->doSth(); } public function doSth(){ } }
autocomplete the doSth method.
doSth not autocomplete
In other ActiveRecord, the complete is ok.
Surely I can add phpdoc /** @var User $user*/ , but is this a bug?
/** @var User $user*/
It is not about this plugin, but about phpDocs of yii2. You also need to check, if $user is null
$user
What steps will reproduce the problem?
What is the expected result?
autocomplete the doSth method.
What do you get instead?
doSth not autocomplete
Additional info