BC break @inject must be followed by a space
Notice: This thread is very old.
- pseek
- Member | 4
This has just cost me an hour of doing my best not to throw my computer out of the window.
This code worked just fine in nette 2.2:
/** @var \App\Tables\Classes @inject*/
public $tClasses = null;
It doesn't work with nette 2.3.
To make it work you have to put a space after the @inject
annotation, I don't know if it was a bug before or if it's now but I can tell
you that figuring this out is really frustrating.
This code works with both 2.2 and 2.3:
/** @var \App\Tables\Classes @inject */
public $tClasses = null;
Last edited by pseek (2015-03-28 20:53)