Skip to content

Commit fb77fa3

Browse files
committed
Fix test case for default with a nested if with and without braces
1 parent a463796 commit fb77fa3

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
@@ -232,7 +232,7 @@ public static function dataSwitchDefault()
232232
'switch_and_default_with_nested_if_with_and_without_braces' => [
233233
'testMarker' => '/* testSwitchDefaultNestedIfWithAndWithoutBraces */',
234234
'openerOffset' => 1,
235-
'closerOffset' => 52,
235+
'closerOffset' => 48,
236236
],
237237
];
238238

0 commit comments

Comments
 (0)