Skip to content

Commit 41364ea

Browse files
committed
remove unused parameters
1 parent 00bd695 commit 41364ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PhpDoc/StubValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function validate(array $stubFiles, bool $debug): array
133133
]);
134134

135135
$ruleRegistry = $this->getRuleRegistry($container);
136-
$collectorRegistry = $this->getCollectorRegistry($container);
136+
$collectorRegistry = $this->getCollectorRegistry();
137137

138138
$fileAnalyser = $container->getByType(FileAnalyser::class);
139139

@@ -293,7 +293,7 @@ private function getRuleRegistry(Container $container): RuleRegistry
293293
return new DirectRuleRegistry($rules);
294294
}
295295

296-
private function getCollectorRegistry(Container $container): CollectorRegistry
296+
private function getCollectorRegistry(): CollectorRegistry
297297
{
298298
return new CollectorRegistry([]);
299299
}

src/Rules/PhpDoc/WrongVariableNameInVarTagRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function processNode(Node $node, Scope $scope): array
101101
}
102102

103103
if ($node instanceof Node\Stmt\Global_) {
104-
return $this->processGlobal($scope, $node, $varTags);
104+
return $this->processGlobal($node, $varTags);
105105
}
106106

107107
if ($node instanceof InClassNode || $node instanceof InClassMethodNode || $node instanceof InFunctionNode) {
@@ -372,7 +372,7 @@ private function processStmt(Scope $scope, array $varTags, ?Expr $defaultExpr):
372372
* @param VarTag[] $varTags
373373
* @return list<IdentifierRuleError>
374374
*/
375-
private function processGlobal(Scope $scope, Node\Stmt\Global_ $node, array $varTags): array
375+
private function processGlobal(Node\Stmt\Global_ $node, array $varTags): array
376376
{
377377
$variableNames = [];
378378
foreach ($node->vars as $var) {

0 commit comments

Comments
 (0)