Skip to content

Commit 2668137

Browse files
committed
cleanup
1 parent 9f33665 commit 2668137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4294,6 +4294,7 @@ private function processClosureNode(
42944294
}
42954295

42964296
$count = 0;
4297+
$closureResultScope = null;
42974298
do {
42984299
$prevScope = $closureScope;
42994300

@@ -4321,7 +4322,7 @@ private function processClosureNode(
43214322
$count++;
43224323
} while ($count < self::LOOP_SCOPE_ITERATIONS);
43234324

4324-
if (!isset($closureResultScope)) {
4325+
if ($closureResultScope === null) {
43254326
$closureResultScope = $closureScope;
43264327
}
43274328

0 commit comments

Comments
 (0)