parser-reflection icon indicating copy to clipboard operation
parser-reflection copied to clipboard

[PHP8.1] Enum cases could not be resolved statically as constants

Open lisachenko opened this issue 1 year ago • 0 comments

For Enum classes, each enum's case is internally represented as a constant with object type, storing instance of enum itself. Unfortunately, this makes impossible to return values for such constants, as they require loading and creation of similar object instances.

lisachenko avatar Mar 10 '24 11:03 lisachenko