Skip to content

Commit

Permalink
Merge branch 'php-8.0/generic-disallowyodaconditions-support-match' of
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Feb 23, 2021
2 parents 48b3d88 + 7def79e commit c75d034
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,12 @@ if ([function() { echo 'hi'; }] === [$foo]
) {
}

echo match (5 == $num) {
true => "true\n",
false => "false\n"
};

echo match ($text) {
'foo' => 10 === $y,
10 === $y => 'bar',
};
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public function getErrorList()
142 => 1,
156 => 1,
160 => 1,
167 => 1,
173 => 1,
174 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit c75d034

Please sign in to comment.