Skip to content

Commit

Permalink
Merge branch 'php-8.0/psr12-booleanoperatorplacement-support-match' of
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Feb 24, 2021
2 parents b27f086 + ab7af46 commit 1106d65
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function register()
T_WHILE,
T_SWITCH,
T_ELSEIF,
T_MATCH,
];

}//end register()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,14 @@ if (
) {
return 5;
}

// Reset to default.
// phpcs:set PSR12.ControlStructures.BooleanOperatorPlacement allowOnly

match (
$expr1
&& $expr2 &&
$expr3
) {
// structure body
};
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,14 @@ if (
) {
return 5;
}

// Reset to default.
// phpcs:set PSR12.ControlStructures.BooleanOperatorPlacement allowOnly

match (
$expr1
&& $expr2
&& $expr3
) {
// structure body
};
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function getErrorList()
90 => 1,
98 => 1,
104 => 1,
125 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit 1106d65

Please sign in to comment.