-
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
Uninitialized string offset in PHP Tokenizer on PHP 5.2 #1237
Comments
More detailed information: Test code: <?php
// Comment:
$a ?: $c; will eventually tokenize as:
And gives the unitialized string offset issue when dealing with the |
I can't get a 5.2 install to check the fix on, so it would be great if you could see if this change fixes the issue. I think it will given the issue itself looks pretty obvious in the code. |
All ok now. |
Good news. Thanks a lot for testing that for me. |
I'm receiving a PHP notice on PHP5.2 with PHPCS 2.7.1/master since commit 531a731 which is breaking our builds on PHP5.2
Notice: Uninitialized string offset: 0 in /tmp/phpcs/CodeSniffer/Tokenizers/PHP.php on line 688
The text was updated successfully, but these errors were encountered: