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
@tancnle
Copy link
Collaborator

tancnle commented Dec 31, 2025

Thanks, @nsfisis. LGTM 🚀

@tancnle tancnle added this pull request to the merge queue Dec 31, 2025
Merged via the queue into rouge-ruby:master with commit ae55a7f Dec 31, 2025
10 checks passed
@nsfisis nsfisis deleted the php/typed-class-constant branch December 31, 2025 14:22
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.

2 participants