Skip to content

Commit

Permalink
Merge pull request #145 from localheinz/fix/import
Browse files Browse the repository at this point in the history
Fix: Import parent namespace only
  • Loading branch information
localheinz authored Feb 29, 2020
2 parents f66e229 + 5bb4940 commit d9ad771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpDoc/TypeNodeResolverExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use PHPStan\PhpDoc;
use PHPStan\PhpDocParser;
use PHPStan\Type;
use Prophecy\Prophecy\ObjectProphecy;
use Prophecy\Prophecy;

/**
* @internal
Expand Down Expand Up @@ -54,7 +54,7 @@ public function resolve(PhpDocParser\Ast\Type\TypeNode $typeNode, Analyser\NameS
$type = $this->typeNodeResolver->resolve($innerType, $nameScope);

if ($type instanceof Type\TypeWithClassName) {
if (ObjectProphecy::class === $type->getClassName()) {
if (Prophecy\ObjectProphecy::class === $type->getClassName()) {
$objectProphecyType = $type;
} else {
$prophesizedType = $type;
Expand Down

0 comments on commit d9ad771

Please sign in to comment.