nyavro / i18nPlugin

Intellij idea i18next support plugin
MIT License
70 stars 11 forks source link

False positive for Unresolved key #164

Open lurkie opened 2 years ago

lurkie commented 2 years ago

In PHPStorm, the following code snippet will result into an 'Unresolved key' inspection. Besides the fact that gettext() should probably used differently, the inspection is not correct. I would have expected no warning at this point.

$array = ['foo' => 'bar'];
echo _($array['foo']);

Perhaps related to issue #85