-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Safety check for foreach #22
Conversation
src/ClassAliasLoader.php
Outdated
foreach ($this->aliasMap['classNameToAliasMapping'][$originalClassName] as $aliasClassName) { | ||
if (!$this->classOrInterfaceExists($aliasClassName)) { | ||
class_alias($originalClassName, $aliasClassName); | ||
if(is_array($this->aliasMap['classNameToAliasMapping'][$originalClassName])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor remark: Can you add a space between the "if" and the "(" so it is consistent? We badly need some CI checks in this package ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Resolves: TYPO3#21
Could it be that this would be fixed with #20 as well? |
No is not fixed. The function TYPO3\ClassAliasLoader::loadOriginalClassAndSetAliases($originalClassName) don't use the fixed function TYPO3\ClassAliasLoader::getOriginalClassName($aliasOrClassName). And so the Issue #22 and #21 is not solved! |
Resolves: #21