-
Notifications
You must be signed in to change notification settings - Fork 20
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 7.1 Nullable types not being detected #273
Comments
Thanks for reporting (with details: I appreciate a lot), but the situation is already known ! To resume, all versions until 5.3.0 are not yet ready to detect all PHP 7 features. Branch 5.4 is currently under huge refactoring to avoid monolithic architecture (legacy) code, enhance maintainibility, and allow to add easily fix about detection/feature missing. I may be available to push to repository in few hours a running v5.4 that you can test ! |
…rnTypeDeclarationSniffTest in this case
With test script added by commit e89de39, future 5.4 will give such result :
|
@LucasKovacs : beta code is up and running in repo (branch 5.4), if you want to test the preview |
@llaville I will give it a try! thanks :) I was not aware that 5.3 did not have full support |
See also commit 58660ad that handle parameters type hinting |
Will be release in two weeks with official release 5.4.0 |
PHP 7.1 nullable types are not being detected.
For example, the following block of code won't be identified as a PHP 7.1 block
Currently using:
version 5.3.0
DB version 2.16.0
Installed via Composer
Reference:
https://www.php.net/manual/en/migration71.new-features.php
The text was updated successfully, but these errors were encountered: