yii2support
yii2support copied to clipboard
FR: Add autocompletion in setAttributes() for Model successors
It would be nice if autocompletion work for Model::setAttributes($values)
just like for BaseObject::__construct($config = [])
(with Go To, Rename and etc).
What steps will reproduce the problem?
Have a model
class User extends Model {
public $name;
}
Set attributes of model:
$model = new User();
$model->setAttributes([
'name' => $name,
], false);
What is the expected result?
Working Go-To for name
assignment.
What do you get instead?
Cannot find declaration to go to.
Additional info
Q | A |
---|---|
IDE Name | PhpStorm |
IDE Version | 2019.1.2 |
Plugin version | v0.10.57.23 |
Yii App Template | doesn't matter |
I think that's really important functionality