Skip to content

Typed class constants support #157

Closed
@thekid

Description

@thekid

In a nutshell

class T {
  public const string NAME= 'Test';
}
  • Syntactic support with erasure at compile time (see cad16ee)
  • Emit type in meta information for PHP < 8.3
  • Extend reflection to support types for class constants
  • Emit types once the Typed class constants RFC implementation is merged into PHP 8.3

See also

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions