Skip to content

Commit 3a69c96

Browse files
committed
null in case of array destructing
1 parent f330cce commit 3a69c96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/PhpParser/Printer/BetterStandardPrinter.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ private function unwrapFileNode(array $stmts): array
565565
}
566566

567567
/**
568-
* @param Node[] $nodes
568+
* @param array<Node|null> $nodes Null in case of array destructuring
569569
*/
570570
private function containsNop(array $nodes): bool
571571
{

0 commit comments

Comments
 (0)