PHPDoc provides an @var tag that should work even for variables declared outside the class.
However, this does not work if I define the variable as the magic element of the object:
$app->translator = new \Fortress\MessageTranslator();
Where $app is a Slim object that supports arbitrary property assignment using magicians and getters.
I know that I could add it to Slim through the @property tag, but then I will need to change the main Slim code every time I create a new property.
Does PHPDoc support such dynamic property documentation?
php phpdoc slim
alexw
source share