Bug #91128
closedPHP Catchable Fatal Error: Object of class PhpParser\Node\Expr\PropertyFetch could not be converted to string
100%
Description
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Catchable Fatal Error: Object of class PhpParser\Node\Expr\PropertyFetch could not be converted to string in /var/www/html/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/ConstructorArgumentMatcher.php line 72 | TYPO3\CMS\Core\Error\Exception thrown in file /var/www/html/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 130. Requested URL: https://typo3.ddev.site/typo3/install.php?install[controller]=upgrade&install[context]=backend
How to reproduce:
- Install Introduction package
- Go to Admin Tool -> Upgrade -> Scan Extension Files
- Scan the "bootstrap_package" extension
One of the ajax requests for scanning the file will now throw the exception above in ConstructorArgumentMatcher for the following file:
typo3conf/ext/bootstrap_package/Contrib/scssphp/src/Compiler.php
see line 261 in Compiler.php:
$this->formatter = new $this->formatter();
The ConstructorArgumentMatcher fails to consider this dynamic way of resolving the className when instantiating the class.
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Catchable Fatal Error: Object of class PhpParser\Node\Expr\PropertyFetch could not be converted to string in typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/ConstructorArgumentMatcher.php line 72
Updated by Christian Eßl over 4 years ago
- Related to Bug #90722: Handle constructor arguments in extension scanner correctly added
Updated by Gerrit Code Review over 4 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64251
Updated by Oliver Hader over 4 years ago
Side-notes: https://github.com/nikic/PHP-Parser/issues/558
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64251
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64251
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64252
Updated by Oliver Hader over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 64228b5490099fe5cb2a366ddbee36a327f4e97e.