Skip to content

Commit

Permalink
Merge branch 'php-8.0/pear-controlsignature-support-match' of https:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Feb 23, 2021
2 parents 8823890 + f8fd8ae commit 2c95041
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ protected function getPatterns()
'} elseif (...) {EOL',
'} else {EOL',
'do {EOL',
'match (...) {EOL',
];

}//end getPatterns()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,10 @@ if ($i == 0) {
}
else {
}
?>

// match
$r = match ($x) {
1 => 1,
};

$r = match( $x ){ 1 => 1 };
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function getErrorList()
133 => 2,
147 => 1,
157 => 1,
165 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit 2c95041

Please sign in to comment.