Fixed: PHP notices are shown if module overrides are removed using the removeOverride() function.

This commit is contained in:
Rohit Jain
2025-02-19 15:30:38 +05:30
committed by GitHub

View File

@@ -3191,8 +3191,6 @@ abstract class ModuleCore
// Make a reflection of the override class and the module override class
$overrideClassFileArray = file($overrideClassFilePath);
$moduleClassFileArray = array_diff($moduleClassFileArray, array("\n")); // remove empty lines from array
eval(
preg_replace(
array(
@@ -3209,6 +3207,7 @@ abstract class ModuleCore
$reflectionClassOverride = new ReflectionClass($overrideClassName.'Original_remove'.$uniq);
$moduleClassFileArray = file($this->getLocalPath().'override/'.$parentClassFilePath);
$moduleClassFileArray = array_diff($moduleClassFileArray, array("\n")); // remove empty lines from array
eval(
preg_replace(
array(