Issue Bug Closed

#97884Throw a proper exception when parsing a docblock fails

Oliver Klee 07/09/22, 19:51 updated 03/18/25, 10:29

Description

In https://git.typo3.org/typo3/CI/cms/-/jobs/1404880, the error looks like this:

1) TYPO3\CMS\Extbase\Tests\Unit\Reflection\ClassSchema\MethodParameterTest::classSchemaDetectsValidateAnnotationsOfControllerActions
Error: Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType()

This needs to be more helpful so that it’s easier to debug. (Also, it should be an exception, not an error.)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.