Skip to content
Snippets Groups Projects
Commit 274e7eea authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[FOLLOWUP] Class loader handles invalid classes

The check if we have class information
can be simplified to !empty()

Resolves: #57117
Related: #56933
Releases: 6.2
Change-Id: I8532b26142cc39da2b9bcca9880df715da57d59e
Reviewed-on: https://review.typo3.org/28596
Reviewed-by: Frans Saris
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
parent 049283cd
Branches
Tags
No related merge requests found
......@@ -181,7 +181,7 @@ class ClassLoader {
// 2 and following => alias class names
// )
$loadingSuccessful = FALSE;
if (is_array($classLoadingInformation) && count($classLoadingInformation) > 0) {
if (!empty($classLoadingInformation)) {
// The call to class_exists fixes a rare case when early instances need to be aliased
// but PHP fails to recognize the real path of the class. See #55904
$loadingSuccessful = class_exists($classLoadingInformation[1], FALSE) || (bool)require_once $classLoadingInformation[0];
......
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