Bug #32466

Strange exception: Invalid annotation

Added by Daniel Ostmann almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
Reflection
Start date:
2011-12-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:

Description

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.


Related issues

Related to TYPO3.Flow - Bug #31087: Uncaught Exception: invalid annotationClosed2011-10-19

Actions
Related to TYPO3.Flow - Bug #31363: Windows newline in annotation block throws exceptionResolvedKarsten Dambekalns2011-10-27

Actions
#1

Updated by Karsten Dambekalns almost 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
  • Target version set to 1.0.2
#2

Updated by Karsten Dambekalns almost 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

See #31363 for the fix.

Also available in: Atom PDF