From db802f7662b7a9956c7687d7e002faa18761a22e Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 16 Sep 2024 18:26:09 +0200 Subject: [PATCH] Fix memory bloat from ComposerCollector --- src/ComposerCollector.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ComposerCollector.php b/src/ComposerCollector.php index d753e7c..78e8850 100644 --- a/src/ComposerCollector.php +++ b/src/ComposerCollector.php @@ -180,12 +180,9 @@ public function getNodeType(): string return FileNode::class; } - /** - * @return RuleError[] - */ - public function processNode(Node $node, Scope $scope): array + public function processNode(Node $node, Scope $scope) { // We're not actually processing nodes, we just are using a Collector have this run once per analyze run - return []; + return null; } }