Strange exception: Invalid annotation
On my localhost everything was fine. When i upload the framework to my server, i got this exception:
Uncaught Exception The @var annotation for "Pixelbrand\MemberManager\Domain\Model\Contribution::$created" seems to be invalid. More Information Exception code #1284132314 File /var/www/doms/cm.pixelbrand.biz/public_html/Packages/Framework/TYPO3.FLOW3/Classes/Reflection/ReflectionService.php line 1121 Exception reference #201112120946518ea6d6
I tried different upload types (ASCII, binary, auto - i use FileZilla as FTP client), and i tried different linebreaks (NL,CR,both). Nothing works at all...
The lines that throw the exception are:
/** * The created date * @var \DateTime */ protected $created;
I got the same exception when i changed the annotation from DateTime to string or bool.
I think, if i remove this property, then the next one would throw another exception like above. I think so, because it is the first file in model directory and the first property in this model class.
This seems to be similar to #31087.
I'm using PHP5.3.8 with FLOW1.0.1 but this happened to 1.0.0 as well.