-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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.1 : Undefined index scope_closer with Enum #3763
Comments
I have a suspicion this may be related to/the same underlying issue as #3750... (untested/unconfirmed, but probably a good idea to look at both code samples when addressing either these) |
@dimitriBouteille I've just tested your code sample on PHP 8.1 with both PHPCS 3.7.1 as well as Please provide additional information with which the issue can be reproduced if you still see the issue. If not, please close the issue. |
Note: the |
Hye @jrfnl I do not reproduce the bug also:) |
Describe the bug
When I want to analyze the following code, I have the following error:
An error occurred during processing; checking has been aborted. The error message was: Undefined index: scope_closer in /vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php on line 2836
.Code sample
Expected behavior
There should normally be no error with the code mentioned just before.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: