Skip to content
New issue

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

PHP 8.3 | Generic/UpperCaseConstantName: add support for typed constants #332

Merged

Commits on Feb 15, 2024

  1. PHP 8.3 | Generic/UpperCaseConstantName: add support for typed constants

    This sniff is specifically targeted at constant names.
    
    PHP 8.3 introduces typed constants. This means that the sniff now needs to jump over a potentially declared constant type to get at the constant name.
    
    Fixed now.
    
    Includes tests.
    
    Fixes squizlabs/PHP_CodeSniffer 3927
    Closes squizlabs/PHP_CodeSniffer 3936
    jrfnl committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    45bf3ad View commit details
    Browse the repository at this point in the history