[+] BO : Add remove module override on constant - PSCFV-10430
This commit is contained in:
@@ -2082,7 +2082,7 @@ abstract class ModuleCore
|
|||||||
|
|
||||||
// Remplacer la ligne de declaration par "remove"
|
// Remplacer la ligne de declaration par "remove"
|
||||||
foreach ($override_file as $line_number => &$line_content)
|
foreach ($override_file as $line_number => &$line_content)
|
||||||
if (preg_match('/(public|private|protected)\s+(static\s+)?\$'.$property->getName().'/i', $line_content))
|
if (preg_match('/(public|private|protected|const)\s+(static\s+)?(\$)'.$property->getName().'/i', $line_content))
|
||||||
{
|
{
|
||||||
$line_content = '#--remove--#';
|
$line_content = '#--remove--#';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user