1

I heared Eclipse doesn't support parameterization of variables like this:

/**

@var DBProxy

*/

$proxy;

or

/**

@var Uri

*/

$uri = Registry::get('uri');

$uri->...

But no completions available

Is there any other solution?

1 Answer 1

3

What about this :

/* @var $uri Uri  */
$uri = Registry::get('uri');


Basically, using :

/* @var $variableName VariableType */

should work.

Sign up to request clarification or add additional context in comments.

1 Comment

Wooow! Thank you very much! :) I tryed "Generte Element Comment" in Eclipse context menu, but it generates /* @var unknown_type */ without $variableName

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.