Actions
Bug #64971
closedStatic access to enumeration constants requires instance once
Status:
Closed
Priority:
Must have
Assignee:
Category:
Miscellaneous
Target version:
Start date:
2015-02-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Stabilization Sprint
Description
With #61090 retrieving constants from an Enumeration
was simplified by static access.
This however does not work if no Enuemration
instance was created before retrieving the constants. The reasons is that the actual constant values are only loaded upon creation of an instance (instance method loadValues()
).
This needs to be fixed my making loadValues()
static, too.
Actions