1
0
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:
orklah 2021-09-20 12:54:08 +02:00
parent a54e76cbc7
commit e6ba6092a6

View File

@ -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();