Closed
Description
PHP 8.2 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
All done
Done
- Readonly classes
- Tokenizer changes needed - PR Fix mis-identification of 'readonly' keyword squizlabs/PHP_CodeSniffer#3773 / Tokenizer/PHP: fix mis-identification of 'readonly' keyword icw PHP 8.2 DNF types #34
- Updates needed to utility functions -
getClassProperties()
- PR PHP 8.2 | File::getClassProperties(): add support for readonly classes squizlabs/PHP_CodeSniffer#3686 - Sniff updates needed - PRs PHP 8.2 | PSR1/SideEffects: allow for readonly classes squizlabs/PHP_CodeSniffer#3728, PSR12/FileHeader: bug fix - false positives on PHP 8.2+ readonly classes squizlabs/PHP_CodeSniffer#3816, PHP 8.2 | Support readonly classes in 11 sniffs squizlabs/PHP_CodeSniffer#3826
- Allow
null
,false
,true
as stand-alone types- Tokenizer changes needed - PR PHP 8.2 | Tokenizer, File, sniffs: account for new
true
type squizlabs/PHP_CodeSniffer#3662 / PHP 8.2 | Tokenizer, File, sniffs: account for newtrue
type #49 - Updates needed to utility functions -
getMethodProperties()
,getMethodParameters()
,getMemberProperties()
- 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 - Sniff updates needed - PR PHP 8.2 | Tokenizer, File, sniffs: account for new
true
type squizlabs/PHP_CodeSniffer#3662 / PHP 8.2 | Tokenizer, File, sniffs: account for newtrue
type #49
- Tokenizer changes needed - PR PHP 8.2 | Tokenizer, File, sniffs: account for new
- Constants in traits
-
Tokenizer changes needed -
Sniff updates needed
-
- Disjunctive Normal Form Types
- Tokenizer changes needed - see Proposal for supporting PHP 8.2+ Disjunctive Normal Form Types in the Tokenizer #387, PR PHP 8.2 | Tokenizer/PHP: add support for DNF types #461
- Sniff updates needed - also see PHP 8.2 - DNF Support squizlabs/PHP_CodeSniffer#3731, PRs PHP 8.2 | File::getMethodParameters(): add support for DNF types #471, PHP 8.2 | File::getMethodProperties(): add support for DNF types #472, PHP 8.2 | File::getMemberProperties(): add support for DNF types #473, Generic/LowerCaseType: add support for examining DNF types #478