Skip to content

Commit c0c08ad

Browse files
authored
Merge pull request #870 from rodrigoprimo/another-fix-to-default-keyword-tests
Tests/Tokenizer: fix `conditions` checking range in `T_DEFAULT` test
2 parents 5f80788 + c07267e commit c0c08ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapDefaultKeywordConditionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testSwitchDefault($testMarker, $openerOffset, $closerOffset, $co
159159
if (($opener + 1) !== $closer) {
160160
$end = $closer;
161161
if (isset($conditionStop) === true) {
162-
$end = ($token + $conditionStop);
162+
$end = ($token + $conditionStop + 1);
163163
}
164164

165165
for ($i = ($opener + 1); $i < $end; $i++) {

0 commit comments

Comments
 (0)