Php - Idea

> Procedural Languages > Php

1 - Type

Idea understand the type through the comments:

  • function:
/**
 * @return My_Type
 */
function myFunction() {
    return my_Type();
}
  • Variable
/**
 *
 * @var My_Type $_myProperty
 */
private $_myProperty;
  • Variable Array
/**
* @var ClassName[] $myVar
*/

2 - Support

2.1 - Cannot find declaration to go to

Be sure that you have added the type in your php comments

Advertising