Skip to content

Commit 3032f81

Browse files
committed
fix array destruct
1 parent 53e636f commit 3032f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticAnalysis/ExecutableLinesFindingVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function getLines(NodeAbstract $node, bool $fromReturns): array
151151
// ugly fix for non-fully AST based processing
152152
// self::afterTraverse()/self::computeReturns() should be rewritten using self::leaveNode()
153153
foreach (range($node->getStartLine(), $node->getEndLine()) as $index) {
154-
if (isset($this->executableLines[$index])) {
154+
if (isset($this->executableLines[$index]) && !($node instanceof Assign)) {
155155
return [];
156156
}
157157
}

0 commit comments

Comments
 (0)