mirror of
https://github.com/danog/psalm.git
synced 2025-01-06 04:59:14 +01:00
turn inside_loop to true for do...while
This commit is contained in:
parent
a54e76cbc7
commit
e6ba6092a6
@ -31,6 +31,7 @@ class DoAnalyzer
|
|||||||
): void {
|
): void {
|
||||||
$do_context = clone $context;
|
$do_context = clone $context;
|
||||||
$do_context->break_types[] = 'loop';
|
$do_context->break_types[] = 'loop';
|
||||||
|
$do_context->inside_loop = true;
|
||||||
|
|
||||||
$codebase = $statements_analyzer->getCodebase();
|
$codebase = $statements_analyzer->getCodebase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user