Issue Bug Closed

#102680new ClassSchema(FlashMessage::class) throw exception Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType()

Alexander Grein 12/15/23, 22:33 updated 05/25/24, 15:55

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<br>```</contextualfeedbackseverity>

Reviews 0

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

History 3

  1. Alexander Grein changed subject new ClassSchema(FlashMessage::class) throw exception new ClassSchema(FlashMessage::class) throw exception Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType() 12/15/23, 22:35

  2. Alexander Grein commented 12/15/23, 22:42

    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<br>&gt; ```</contextualfeedbackseverity>

    If I change it to this, it works:
    @param int|ContextualFeedbackSeverity $severity

  3. Georg Ringer commented and changed status New Closed 05/25/24, 15:55

    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