Project

General

Profile

Bug #61090 ยป enumeration-getconstants-static.patch

Mathias Brodala, 2014-08-20 09:28

View differences:

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']);
}
    (1-1/1)