diff --git a/typo3/sysext/core/Classes/Type/Enumeration.php b/typo3/sysext/core/Classes/Type/Enumeration.php index f77f23e..37a5c42 100644 --- a/typo3/sysext/core/Classes/Type/Enumeration.php +++ b/typo3/sysext/core/Classes/Type/Enumeration.php @@ -159,8 +159,8 @@ abstract class Enumeration implements TypeInterface { * @param boolean $include_default * @return array */ - public function getConstants($include_default = FALSE) { - $enumConstants = static::$enumConstants[get_class($this)]; + public static function getConstants($include_default = FALSE) { + $enumConstants = static::$enumConstants[get_called_class()]; if (!$include_default) { unset($enumConstants['__default']); }