Skip to content

Conversation

@nsfisis
Copy link
Contributor

@nsfisis nsfisis commented Nov 3, 2025

Part of #2169

Support typed class constants introduced since PHP 8.3.

https://wiki.php.net/rfc/typed_class_constants

class C {
    const bool CONST_1 = true;
    public const int CONST_2 = 1;
    protected const float CONST_3 = 1.0;
    private const string CONST_4 = "foo";
    const ?array CONST_5 = [];
}

@nsfisis nsfisis mentioned this pull request Nov 3, 2025
6 tasks
@nsfisis nsfisis force-pushed the php/typed-class-constant branch from 093b6b2 to bc87d0a Compare November 13, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant