Skip to content

Commit 5b8222a

Browse files
committed
Fix class not found
1 parent 07886b7 commit 5b8222a

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ parameters:
6161

6262
-
6363
identifier: class.notFound
64+
path: tests/Rules/Rector/PhpUpgradeImplementsMinPhpVersionInterfaceRule/PhpUpgradeImplementsMinPhpVersionInterfaceRuleTest.php
6465

6566
-
6667
identifier: phpstanApi.runtimeReflection

src/Rules/Explicit/ExplicitClassPrefixSuffixRule.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use PhpParser\Node\Stmt\Trait_;
1313
use PHPStan\Analyser\Scope;
1414
use PHPStan\Rules\Rule;
15+
use PHPStan\Rules\RuleError;
1516
use PHPStan\Rules\RuleErrorBuilder;
1617
use Symplify\RuleDocGenerator\Contract\DocumentedRuleInterface;
1718
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;

src/Rules/Rector/PhpUpgradeDowngradeRegisteredInSetRule.php

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

6666
$errorMessage = $this->createErrorMessage($configFilePath, $className);
67-
return [RuleErrorBuilder::message($errorMessage)->build()];
67+
return [\PHPStan\Rules\RuleErrorBuilder::message($errorMessage)->build()];
6868
}
6969

7070
private function resolveRelatedConfigFilePath(string $className): ?string

src/Rules/Rector/RequireAssertConfigureValueObjectRectorRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PhpParser\NodeFinder;
1313
use PHPStan\Analyser\Scope;
1414
use PHPStan\Reflection\ClassReflection;
15-
use PHPStan\Reflection\FunctionVariantWithPhpDocs;
15+
use PHPStan\Reflection\ExtendedFunctionVariant;
1616
use PHPStan\Reflection\Php\PhpMethodReflection;
1717
use PHPStan\Rules\Rule;
1818
use PHPStan\Rules\RuleErrorBuilder;
@@ -103,7 +103,7 @@ private function hasArrayObjectTypeParam(ClassMethod $classMethod, ClassReflecti
103103
}
104104

105105
foreach ($extendedMethodReflection->getVariants() as $variant) {
106-
if (! $variant instanceof FunctionVariantWithPhpDocs) {
106+
if (! $variant instanceof ExtendedFunctionVariant) {
107107
continue;
108108
}
109109

0 commit comments

Comments
 (0)