This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hello, I work on an open source project with developers using both Netbeans and PHPStorm. The annotation used for type hinting variables in Netbeans is restricted to one order of arguments which is not compatible with PHPStorm. Example /** @var $repository \AwesomeProject\UserBundle\UserRepository */ $repository = $this->getDoctrine()->getRepository('AwesomeProjectUserBundle:User'); is what Netbeans generates and understands. /** @var \AwesomeProject\UserBundle\UserRepository $repository */ $repository = $this->getDoctrine()->getRepository('AwesomeProjectUserBundle:User'); Is what PHPStorm generates but the editor is compatible with both parameter orders. The I think Netbeans should at least be made compatible with the parameter order that PHPStorm uses. Also because this is in my opinion the most logical order to document your variables because it's similar to how the @param notation works /** * @param UserRepository $repository */ function getUserRepositoryOrWhatever(); Since it's @param <type> <variable> I think @var <type> <variable> should at least be supported.
Definitely enhancement.
*** This bug has been marked as a duplicate of bug 267470 ***