Issue Bug Closed

#106043ExtensionScanner failes on concated dynamic method names

Jan Delius 01/31/25, 14:20 updated 12/02/25, 14:26

Description

When running the extension scanner, we got the following message in our log:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined property: PhpParser\Node\Expr\BinaryOp\Concat::$name in /var/www/cms/vendor/typo3/cms-install/Classes/ExtensionScanner/Php/Matcher/InterfaceMethodChangedMatcher.php line 90 | TYPO3\CMS\Core\Error\Exception thrown in file /var/www/cms/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php in line 141. Requested URL: https://fvde.jde.nng-dev.de/typo3/install.php?install%5Bcontroller%5D=upgrade&install%5Bcontext%5D=backend

This seems to be fired at https://github.com/TYPO3/typo3/blob/b1e36ce3dae0889a1539aab7f192a5221e96311e/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/InterfaceMethodChangedMatcher.php#L85 if the MethodCall name is of type PhpParser\Node\Expr\BinaryOp\Concat. This is the case in the following example:

$myObject = new MyClass();
$methodSuffix = $anyDynamicStringGivenFromMyFunction;

$myObject->{'do' . $methodSuffix}();

Reviews 4