Aptana will not generate phpdoc blocks for functions inside classes

In Aptana, I somehow broke functionality to automatically generate phpdoc comments for functions inside classes. Apparently this only affects my current project.

Usually I can type / ** in the line before the function and press enter, and Aptana will create a phpdoc comment with the correct @param values, etc. For some reason, when I do this, Aptana creates 2 comments, one in the other. eg.

/** * /** * */ */ public static function getByLogin($loginID, $ip, $userAgent) { } 

It works fine if I try this for global functions. It also works for class variables and the classes themselves.

+2
source share
2 answers

I fixed this by right-clicking the project and then configure -> add php support. I don’t understand how php support was removed or how phpdoc worked on global functions without it, but now it is fixed.

+3
source

I think I saw this feature in Aptana 2, but it was removed from Aptana 3, I don’t know why.

+1
source

All Articles