nvlad / yii2support

Yii2 Support for PhpStorm / IntelliJ IDEA
https://plugins.jetbrains.com/idea/plugin/9388-yii2-support
Other
295 stars 54 forks source link

Don't raise "Missed field" when config value is \yii\helpers\UnsetArrayValue() #218

Open machour opened 5 years ago

machour commented 5 years ago

What steps will reproduce the problem?

Use this configuration for the queue component:

        'queue' => [
            'class' => \yii\queue\sync\Queue::class,
            'db' => new \yii\helpers\UnsetArrayValue(),
            'tableName' => new \yii\helpers\UnsetArrayValue(),
            'channel' => new \yii\helpers\UnsetArrayValue(),
            'mutex' => new \yii\helpers\UnsetArrayValue(),
        ],

What is the expected result?

No errors raised

What do you get instead?

Field 'db' is not in referenced class \yii\queue\sync\Queue

Additional info

Q A
IDE Name PhpStorm
IDE Version 2018.3.3
Plugin version v0.10.56.22
Yii App Template advanced