Skip to content

Commit f0e74de

Browse files
committed
Fix test case for default with a nested if with and without braces
1 parent 42e20ce commit f0e74de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapDefaultKeywordConditionsTest.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ function switchDefaultNestedIfWithAndWithoutBraces($i, $foo, $baz) {
216216
default:
217217
if ($foo) {
218218
return true;
219-
} elseif ($baz) {
219+
} elseif ($baz)
220220
return true;
221-
} else {
221+
else {
222222
echo 'else';
223223
}
224224
break;

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapDefaultKeywordConditionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public static function dataSwitchDefault()
233233
'switch_and_default_with_nested_if_with_and_without_braces' => [
234234
'testMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBraces */',
235235
'openerOffset' => 1,
236-
'closerOffset' => 52,
236+
'closerOffset' => 48,
237237
],
238238
];
239239

0 commit comments

Comments
 (0)