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.0 | Tokenizer/PHP: bugfix for union types using namespace operator #3302

Commits on Apr 19, 2021

  1. PHP 8.0 | Tokenizer/PHP: bugfix for union types using namespace operator

    Type declarations can use namespace relative Types, i.e. `namespace\Sub\Name`.
    
    However, in that case, the `T_BITWISE_OR` token was incorrectly not converted to `T_TYPE_UNION`.
    
    Includes unit tests.
    Includes additional tests with all other "namespaced identifier name" types to safeguard this for the PHPCS 4.x change to the PHP 8.0 tokenization of identifier names.
    jrfnl committed Apr 19, 2021
    Copy the full SHA
    52f2e80 View commit details
    Browse the repository at this point in the history