-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Support new PHP 8.3 syntaxes #106
Comments
Is there any news on this? Dependencies seem to be released. |
@leitommi What dependencies are you talking about ? |
I mean these PR-s are merged that were marked as "Blocked until": I am mostly interested in typed class constants that were introduced in php 8.3. Currently following code:
produces following error, with phpcs 3.8.0:
|
The following three PRs have been opened to add support for PHP 8.3 typed class constants to various sniffs:
Testing of these PRs would be appreciated. |
Everything works as expected for me.✌️👍 When can we expect a release? |
I can also confirm that everything is working correctly. 👍 |
@FabianKoestring @KeldorDE Thank you both for testing. Unless something unexpected happens, I'm hoping to release the 3.9.0 version towards the end of next week. |
Version 3.9.0 has been tagged & released. I'm leaving this issue open for now as the last bullet still needs to be investigated, though I don't really expect any issues with that syntax, but I'd rather be sure. |
PHP 8.3 includes the following new syntaxes for which it should be verified if the Tokenizer needs updates and/or whether any sniffs need updates:
To Do
C::{$name}
Done
new readonly class {};
Updates needed to utility functions -getClassProperties()
Blocked until PR PHP 8.2 | Tokenizer, File, sniffs: account for newtrue
type squizlabs/PHP_CodeSniffer#3662 / PHP 8.2 | Tokenizer, File, sniffs: account for newtrue
type #49 has been merged.Also see PHP 8.3 - Typed class constants support squizlabs/PHP_CodeSniffer#3927
Blocked until PR Tokenizer/PHP: bug fix for static typed properties with union/intersection types squizlabs/PHP_CodeSniffer#3867 / Tokenizer/PHP: bug fix for static typed properties with union/intersection types #78 has been merged.yield from
- see Reminder: revisityield from
tokenization #529The text was updated successfully, but these errors were encountered: