I've recently started using the Silex framework and am wondering if there are any tips on getting code completion playing nicely.
They use Array Access for their "Application" class, so for example an instance of Twig would be availble via the key 'twig'.
Is there any way to tell the IDE for given class what array keys are available and what types of objects they are?
Also if anyone has any general suggestions for code completion in Silex I am interested.
AFAIK you cannot (unless there exist some special plugin that supports that framework). You can only do this via intermediate variable and PHPDoc type hint (which can be a bit too much in some cases).
As far as I understand this is the right ticket to watch (hopefully they will implement it one day, no idea when though): http://youtrack.jetbrains.com/issue/WI-6027