Skip to content

Commit

Permalink
correct reflector type
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 11, 2022
1 parent 55ff73b commit 8079614
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use Rector\Core\Util\StringUtils;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor\RemoveDeepChainMethodCallNodeVisitor;
use Reflector;
use Symplify\PackageBuilder\Reflection\PrivatesAccessor;
use Symplify\SmartFileSystem\SmartFileInfo;

Expand Down Expand Up @@ -218,10 +217,14 @@ private function decoratePHPStanNodeScopeResolverWithRenamedClassSourceLocator(
$classReflector = $this->privatesAccessor->getPrivatePropertyOfClass(
$nodeScopeResolver,
'reflector',
MemoizingReflector::class
\PHPStan\BetterReflection\Reflector\Reflector::class
);

$reflector = $this->privatesAccessor->getPrivatePropertyOfClass($classReflector, 'reflector', MemoizingReflector::class);
$reflector = $this->privatesAccessor->getPrivatePropertyOfClass(
$classReflector,
'reflector',
\PHPStan\BetterReflection\Reflector\Reflector::class
);

/** @var SourceLocator $sourceLocator */
$sourceLocator = $this->privatesAccessor->getPrivatePropertyOfClass(
Expand Down

0 comments on commit 8079614

Please sign in to comment.