Skip to content

Conversation

@claudepache
Copy link
Contributor

This enables support of the do-break-while-false pattern:

do {
    if ($foo) {
        if ($bar) {
            $a = 'baz';
            break;
        }
     }
     $a = foobar($baz);
} while (false); // no doWhile.alwaysFalse error

The error is still reported when the pseudo-loop is not broken with break.

@claudepache
Copy link
Contributor Author

(The second commit did not change semantics, only simplified redundant conditions.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant