Skip to content
Snippets Groups Projects
Commit 64228b54 authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] Skip dynamically assigned instance names in extension scanner

Dynamically created class instances using a variable name cannot be
resolved in extension scanner - given the fact that a class member
variable can change at any time and the scanner would have to keep
that state - which is too much for static code analysis.

Thus, the following source code is not analyzed.

$className = SomeClass::class;
$object = GeneralUtility($className);

Resolves: #91128
Releases: master, 9.5
Change-Id: I7f87e7c88e9e62efb85ee54f32625c531266cbba
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64251


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarChristian Eßl <indy.essl@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarGhanshyam Bhava <ghanshyambhava@yahoo.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarChristian Eßl <indy.essl@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarGhanshyam Bhava <ghanshyambhava@yahoo.com>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent f048ee3a
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment