[+] BO : Add remove module override on constant - PSCFV-10430

This commit is contained in:
Jerome Nadaud
2013-09-30 14:57:30 +02:00
parent e040c096d1
commit cfc41ec4ef

View File

@@ -2082,7 +2082,7 @@ abstract class ModuleCore
// Remplacer la ligne de declaration par "remove"
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--#';
break;