From 06c81f3cb7e71b9ad53deb6831a0b1374dff1e23 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 8 May 2026 21:05:42 +0700 Subject: [PATCH] Fix deprecated PHPParser UseUse --- src/Analyser/ClassCollector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Analyser/ClassCollector.php b/src/Analyser/ClassCollector.php index 30b4def..b0d7434 100644 --- a/src/Analyser/ClassCollector.php +++ b/src/Analyser/ClassCollector.php @@ -29,8 +29,8 @@ use PhpParser\Node\Stmt\Foreach_; use PhpParser\Node\Stmt\If_; use PhpParser\Node\Stmt\Interface_; -use PhpParser\Node\Stmt\UseUse; use PhpParser\Node\Stmt\While_; +use PhpParser\Node\UseItem; use PhpParser\NodeTraverser; use PhpParser\NodeVisitorAbstract; @@ -81,7 +81,7 @@ public function getNodes(): array public function enterNode(Node $node): null { - if ($node instanceof UseUse) { + if ($node instanceof UseItem) { $this->fileUses[] = implode('\\', $node->name->getParts()); return null; }