Skip to content

Commit

Permalink
PHP 8.0 | PEAR/ScopeClosingBrace: add tests with match control structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Feb 23, 2021
1 parent 8b0137a commit ad97d0c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,11 @@ switch ( $a ) {
?>
<?php $_cartQty = $this->getSummaryCount(); ?>
<div id="minicart" <?php if ($_cartQty == 0): ?>class="empty"<?php endif; ?>>

<?php
$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 @@ -148,3 +148,12 @@ switch ( $a ) {
<?php $_cartQty = $this->getSummaryCount(); ?>
<div id="minicart" <?php if ($_cartQty == 0): ?>class="empty"<?php
endif; ?>>

<?php
$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 @@ -40,6 +40,8 @@ public function getErrorList()
135 => 1,
141 => 1,
146 => 1,
149 => 1,
154 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit ad97d0c

Please sign in to comment.