Skip to content

Commit 13fdcd9

Browse files
Fix
1 parent af0f984 commit 13fdcd9

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/Analyser/RuleErrorTransformer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPStan\Fixable\PhpPrinter;
1515
use PHPStan\Fixable\PhpPrinterIndentationDetectorVisitor;
1616
use PHPStan\Fixable\ReplacingNodeVisitor;
17-
use PHPStan\Node\PropertyAssignNode;
1817
use PHPStan\Node\VirtualNode;
1918
use PHPStan\Rules\FileRuleError;
2019
use PHPStan\Rules\FixableNodeRuleError;

src/Rules/FunctionCallParametersCheck.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PhpParser\Node;
66
use PhpParser\Node\Expr;
77
use PHPStan\Analyser\MutatingScope;
8-
use PHPStan\Analyser\RuleErrorTransformer;
98
use PHPStan\Analyser\Scope;
109
use PHPStan\DependencyInjection\AutowiredParameter;
1110
use PHPStan\DependencyInjection\AutowiredService;

src/Rules/Methods/StaticMethodCallCheck.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function check(
6262
Scope $scope,
6363
string $methodName,
6464
$class,
65-
Identifier|Expr $astName
65+
Identifier|Expr $astName,
6666
): array
6767
{
6868
$errors = [];
@@ -318,9 +318,9 @@ public function check(
318318
))
319319
->line($astName->getStartLine())
320320
->identifier(sprintf(
321-
'%s.callToAbstract',
322-
$method->isStatic() ? 'staticMethod' : 'method',
323-
))->build(),
321+
'%s.callToAbstract',
322+
$method->isStatic() ? 'staticMethod' : 'method',
323+
))->build(),
324324
],
325325
$method,
326326
];

src/Rules/Methods/StaticMethodCallableRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function processNode(Node $node, Scope $scope): array
4646

4747
$methodNameName = $methodName->toString();
4848

49-
[$errors, $methodReflection] = $this->methodCallCheck->check($scope, $methodNameName, $node->getClass(), $node->getName()->getStartLine());
49+
[$errors, $methodReflection] = $this->methodCallCheck->check($scope, $methodNameName, $node->getClass(), $node->getName());
5050
if ($methodReflection === null) {
5151
return $errors;
5252
}

0 commit comments

Comments
 (0)