Bug #61090 ยป enumeration-getconstants-static.patch
typo3/sysext/core/Classes/Type/Enumeration.php | ||
---|---|---|
* @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']);
|
||
}
|