1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 01:09:38 +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 {
$do_context = clone $context;
$do_context->break_types[] = 'loop';
$do_context->inside_loop = true;
$codebase = $statements_analyzer->getCodebase();