Skip to content

Commit 82fa120

Browse files
Remove condition
1 parent fa22c84 commit 82fa120

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Type/Php/GetClassDynamicReturnTypeExtension.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPStan\Type\Generic\GenericClassStringType;
1515
use PHPStan\Type\Generic\TemplateType;
1616
use PHPStan\Type\IntersectionType;
17-
use PHPStan\Type\ObjectShapeType;
1817
use PHPStan\Type\ObjectType;
1918
use PHPStan\Type\ObjectWithoutClassType;
2019
use PHPStan\Type\StaticType;
@@ -67,10 +66,6 @@ static function (Type $type, callable $traverse): Type {
6766
return new GenericClassStringType(new ObjectType($type->getClassName()));
6867
}
6968

70-
if ($type instanceof ObjectShapeType) {
71-
return new ClassStringType();
72-
}
73-
7469
$isObject = $type->isObject();
7570
if ($isObject->no()) {
7671
return new ConstantBooleanType(false);

0 commit comments

Comments
 (0)