We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently there's no sniff to ensure that constants are typed through native types.
I'd like to introduce a sniff that enables this and ensures the following:
class A { const null AA = null; const true AAA = true; const false AAAA = false; const string AAAAA = 'aa'; const int AAAAAA = 123; const float AAAAAAA = 123.456; const array AAAAAAAA = ['php']; const int AAAAAAAAA = -123; const float AAAAAAAAAA = -123.456; }
This is available since PHP 8.3. See: https://wiki.php.net/rfc/typed_class_constants
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Currently there's no sniff to ensure that constants are typed through native types.
I'd like to introduce a sniff that enables this and ensures the following:
This is available since PHP 8.3. See: https://wiki.php.net/rfc/typed_class_constants
The text was updated successfully, but these errors were encountered: