diff --git a/Gii/GiiBase.php b/Gii/GiiBase.php index c99ef000..c09f5cec 100644 --- a/Gii/GiiBase.php +++ b/Gii/GiiBase.php @@ -160,7 +160,13 @@ abstract class GiiBase protected function getClassProperty(ReflectionClass $class): string { $html = ''; + + $rc = $class->getParentClass()->getConstants(); + foreach ($class->getConstants() as $key => $val) { + if (isset($rc[$key])) { + continue; + } if (is_numeric($val)) { $html .= ' const ' . $key . ' = ' . $val . ';' . "\n";