Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 1, 2021
1 parent e146992 commit 08b9cf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use PhpParser\Node\Expr\New_;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Expr\StaticCall;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\ReflectionProvider;
use PHPStan\Type\ObjectType;
Expand Down Expand Up @@ -158,7 +159,7 @@ private function shouldSkip(string $methodName, string $className, StaticCall $s
}

$scope = $staticCall->getAttribute(AttributeKey::SCOPE);
if (! $scope instanceof \PHPStan\Analyser\Scope) {
if (! $scope instanceof Scope) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PhpParser\Node;
use PhpParser\Node\Stmt\ClassMethod;
use PHPStan\Analyser\Scope;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\ValueObject\Visibility;
Expand Down Expand Up @@ -98,7 +99,7 @@ public function getNodeTypes(): array
public function refactor(Node $node): ?Node
{
$scope = $node->getAttribute(AttributeKey::SCOPE);
if (! $scope instanceof \PHPStan\Analyser\Scope) {
if (! $scope instanceof Scope) {
return null;
}

Expand Down

0 comments on commit 08b9cf4

Please sign in to comment.