Bug #102680
closed
new ClassSchema(FlashMessage::class) throw exception Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType()
Added by Alexander Grein 8 months ago.
Updated 3 months ago.
Description
Using the extbase class TYPO3\CMS\Extbase\Reflection\ClassSchema to get the schema of the class TYPO3\CMS\Core\Messaging\FlashMessage throw the following exception:
```
Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType()
```
The cause is this @param annotation:
```
@param int|value-of<ContextualFeedbackSeverity>|ContextualFeedbackSeverity $severity
```
- Subject changed from new ClassSchema(FlashMessage::class) throw exception to new ClassSchema(FlashMessage::class) throw exception Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType()
Alexander Grein wrote:
Using the extbase class TYPO3\CMS\Extbase\Reflection\ClassSchema to get the schema of the class TYPO3\CMS\Core\Messaging\FlashMessage throw the following exception:
```
Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType()
```
The cause is this @param annotation:
```
@param int|value-of<ContextualFeedbackSeverity>|ContextualFeedbackSeverity $severity
```
If I change it to this, it works:
@param int|ContextualFeedbackSeverity $severity
- Status changed from New to Closed
this has been changed with #101043. I don't see the need for changing the related code in 12. the more interesting question is what you plan to do with the reflection anyways. maybe you wanna elaborate via slack?
closing the issue as I don't see the need of change
Also available in: Atom
PDF