diff --git a/kernel/private/classes/ezautoloadgenerator.php b/kernel/private/classes/ezautoloadgenerator.php index 1b636700e7e..96f4a1b38d4 100644 --- a/kernel/private/classes/ezautoloadgenerator.php +++ b/kernel/private/classes/ezautoloadgenerator.php @@ -643,7 +643,7 @@ protected function getClassFileList( $fileList, $mode ) * @see https://www.php.net/manual/en/language.oop5.anonymous.php * NEW_TOKEN - WHITESPACE_TOKEN - CLASS_TOKEN */ - if($tokens[$key-2][0] === T_NEW) { + if(isset($tokens[$key-2][0]) && $tokens[$key-2][0] === T_NEW) { break; }