Issue Feature Closed

#82412Add magic static call to enumeration class

Romain Canon 09/09/17, 15:48 updated 03/25/20, 14:07

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();

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.