Skip to content

Commit

Permalink
Merge branch 'php-8.0/squiz-scopeclosingbrace-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 436a610 + d2872c1 commit b52a018
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ public function foo()
}

$fn1 = fn($x) => $x + $y;

$match = match ($test) { 1 => 'a', 2 => 'b' };

$match = match ($test) {
1 => 'a',
2 => 'b'
};
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,11 @@ public function foo()
}

$fn1 = fn($x) => $x + $y;

$match = match ($test) { 1 => 'a', 2 => 'b'
};

$match = match ($test) {
1 => 'a',
2 => 'b'
};
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function getErrorList()
24 => 1,
80 => 1,
102 => 1,
111 => 1,
116 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit b52a018

Please sign in to comment.