Open dexcell opened 2 years ago
Hi. ArrayAccess
completion is not supported.
See https://github.com/klesun/deep-assoc-completion/issues/102
Need a PR or something for this feature.
You could possibly trick the plugin into thinking that $app
is an associative array by doing something like this:
/** @var $app = ['twig' => new \Twig\Environment()] */
$app = new \Silex\Application();
The plugin will consider $app
type a union of associative array and class instance in such case if I remember right how it works.
This PSALM annotation should probably work as well:
/** @var \Silex\Application|array{twig: \Twig\Environment} $app */
$app = something();
Hi,
I have a var called
$app
, its a class\Silex\Application
that implementsArrayAccess
.then inside that
$app
array there istwig
key which is an object of\Twig\Environment
So in source code i use it like thisHow to enable auto completion for
$app['twig']
to showrender
function? How to setup this in.phpstorm.meta.php
?Thanks