Bug #91207
closedSiteFinder: Call to undefined method phpDocumentor\Reflection\DocBlock\Tags\InvalidTag::getType
0%
Description
Problem/Description¶
I hope the bug report is in the right place. If you want to use the Core siteFinder in an extension (extbase controller) you get an error that occurs in the interaction between symfony and phpDocumentor.
Affected TYPO3 versions at the time of issue-creation¶
10.4.0
I haven't tested it in older versions
ToDo¶
It is a bug in phpDocumentor. Here is ja link to the bug report: https://github.com/phpDocumentor/phpDocumentor/issues/2317 . I have currently implemented the following patch https://github.com/symfony/symfony/issues/36049 .
Updated by Georg Ringer over 4 years ago
- Status changed from New to Needs Feedback
Thanks for creating the issue.
Which lines in the core code are affected and should be changed to avoid the bug? thanks for some clarification
Updated by Stefan Bublies over 4 years ago
Thanks for creating the issue.
Which lines in the core code are affected and should be changed to avoid the bug? thanks for some clarification
I'm sorry but I'm not very familiar with core code. I think its not a problem in the core code, it is a problem in the core code from phpDocumentor version 5.1. The quickfix in the phpDocumentor-Issue is: downgrade to version 4.3.x but typo3 10.4.x required phpDocumentor version 5.1.x.
If you use the TYPO3\CMS\Core\Site\SiteFinder in your own extbase controller with e.g. getAllSites() function you get the error. I hope this helps.
Updated by Gregor Agnes over 4 years ago
I downgraded phpdocumentor
"phpdocumentor/reflection-docblock": "4.3.4 as 5.1.0"
error is gone, no further issues so far.
Updated by Benni Mack over 4 years ago
- Status changed from Needs Feedback to Closed
We updated to 5.2.0 and solved the issue with the latest 10.4.6 release.