code assist on foreach loop

General discussion on Zend Studio
Post Reply
Posts: 3
Joined: Fri Feb 17, 2012 8:47 am

code assist on foreach loop

Post by abcbien » Thu Jan 31, 2013 2:02 pm


is it possible to obtain code assistance on elements of a foreach loop?

Short example:
class MyClass {
* @return MyClass[]
static function getArrayOfMyClass() {

public function aFunctionOfMyClass() {

$arrayOfMyClass = MyClass::getArrayOfMyClass();

foreach ($arrayOfMyClass as $oneOfMyClass) {

I'd like ZendStudio to assist code typing by PROPOSING aFunctionOfMyClass()
The type should be found from the function comment (PHPStorm can do it).

How to do it with ZendStudio ?


Post Reply