Project

General

Profile

Actions

Bug #91128

closed

PHP Catchable Fatal Error: Object of class PhpParser\Node\Expr\PropertyFetch could not be converted to string

Added by Christian Eßl over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
Start date:
2020-04-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90722: Handle constructor arguments in extension scanner correctlyClosed2020-03-10

Actions
Actions #1

Updated by Christian Eßl over 4 years ago

  • Related to Bug #90722: Handle constructor arguments in extension scanner correctly added
Actions #2

Updated by Christian Eßl over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Oliver Hader over 4 years ago

  • Description updated (diff)
Actions #4

Updated by Oliver Hader over 4 years ago

  • Description updated (diff)
Actions #5

Updated by Oliver Hader over 4 years ago

  • Status changed from New to Accepted
Actions #6

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

Updated by Oliver Hader over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF