Skip to content

Commit 46715ed

Browse files
committed
Added list of sniffs that now suport match expressions to changelog (ref #3037)
1 parent 062806b commit 46715ed

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

package.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,25 @@ http://pear.php.net/dtd/package-2.0.xsd">
3737
-- Thanks to Juliette Reinders Folmer for the patch
3838
- Added support for PHP 8.0 match expressions
3939
-- Match expressions are now tokenised with parenthesis and scope openers and closers
40-
--- Sniffs can listen for the T_MATCH token to process match expressions
41-
--- Note that the case and default statements inside match expressions do not have scopes set
40+
--- Sniffs can listen for the T_MATCH token to process match expressions
41+
--- Note that the case and default statements inside match expressions do not have scopes set
4242
-- A new T_MATCH_ARROW token is available to represent the arrows in match expressions
4343
-- A new T_MATCH_DEFAULT token is available to represent the default keyword in match expressions
4444
-- All tokenizing of match expressions has been backfilled for older PHP versions
45+
-- The following sniffs have been updated to support match expressions:
46+
--- Generic.CodeAnalysis.AssignmentInCondition
47+
--- Generic.CodeAnalysis.EmptyStatement
48+
--- Generic.PHP.LowerCaseKeyword
49+
--- PEAR.ControlStructures.ControlSignature
50+
--- PSR12.ControlStructures.BooleanOperatorPlacement
51+
--- Squiz.Commenting.LongConditionClosingComment
52+
--- Squiz.Commenting.PostStatementComment
53+
--- Squiz.ControlStructures.LowercaseDeclaration
54+
--- Squiz.ControlStructures.ControlSignature
55+
--- Squiz.Formatting.OperatorBracket
56+
--- Squiz.PHP.DisallowMultipleAssignments
57+
--- Squiz.Objects.ObjectInstantiation
58+
--- Squiz.WhiteSpace.ControlStructureSpacing
4559
-- Thanks to Juliette Reinders Folmer for the patch
4660
- The value of the T_FN_ARROW token has changed from "T_FN_ARROW" to "PHPCS_T_FN_ARROW" to avoid package conflicts
4761
-- This will have no impact on custom sniffs unless they are specifically looking at the value of the T_FN_ARROW constant

0 commit comments

Comments
 (0)