Skip to content

v1.1.0 - Dynamic return type detection of Enum->getValue() & Enum->getValues()

Compare
Choose a tag to compare
@marc-mabe marc-mabe released this 21 Apr 14:44
· 36 commits to master since this release

Added dynamic return type detection for Enum->getValue() & Enum->getValues().

  • detect return type of getValue()/getValues() of an enumeration by defined enumerators
    • If possible it also detects constant return values
  • support union of multiple enumerations
    • like the values of a union of IntEnum|StrEnum will be a union of int|string