Actions
Feature #82412
closedTask #82404: Improve enumeration usage
Add magic static call to enumeration class
Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2017-09-09
Due date:
% Done:
0%
Estimated time:
PHP Version:
7.0
Tags:
enumeration,enum
Complexity:
Sprint Focus:
Description
See epic ticket for more information.
Introducing magic static methods calls, to dramatically ease readability:
// Old way:
$myEnum = MyEnum::cast(MyEnum::MY_VALUE);
// New way:
$myEnum = MyEnum::MY_VALUE();
Updated by Mathias Brodala over 6 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Susanne Moog about 6 years ago
- Target version changed from 9 LTS to Candidate for Major Version
Updated by Susanne Moog over 4 years ago
- Status changed from New to Closed
As this is a technical task and nothing happened for a long time due to lack of time, I'm going to close the ticket for now. If you have time to work on it again, please reopen (with pushing a patch).
Actions