Open
Description
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
- Dynamic class constant fetch -
C::{$name}
- Tokenizer changes needed ?
- Sniff updates needed ?
Done
- Readonly anonymous classes -
new readonly class {};
- Tokenizer changes needed - PR PHP 8.3 | Tokenizer/PHP: add support for readonly anonymous classes #309
-
Updates needed to utility functions -getClassProperties()
- Sniff updates needed - PRs PHP 8.3 | Add tests with readonly anonymous classes to various sniffs #323 + PHP 8.3 | PSR12/ClassInstantiation: allow for readonly anonymous classes #324
- Typed class constants
- Tokenizer changes needed - PR PHP 8.3 | Tokenizer/PHP: add support for typed OO constants #321
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. - Sniff updates needed - PRs PHP 8.3 | Generic/LowerCaseConstant: add support for typed constants #330 + PHP 8.3 | Generic/LowerCaseType: add support for typed constants #331 + PHP 8.3 | Generic/UpperCaseConstantName: add support for typed constants #332
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.
- Tokenizer changes needed - PR PHP 8.3 | Tokenizer/PHP: add support for typed OO constants #321
- Tokenization change for
yield from
- see Reminder: revisityield from
tokenization #529- Tokenizer changes needed - PR PHP 8.3 | Tokenizer/PHP: support "yield from" with comments #647
- Sniff updates needed - PR PHP 8.3 | Tokenizer/PHP: support "yield from" with comments #647