Skip to content

Commit 2f5a3ba

Browse files
committed
TEST
1 parent 856040e commit 2f5a3ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/PHPStan/Analyser/data/TestDynamicReturnTypeExtensions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ public function specifyTypes(MethodReflection $methodReflection, MethodCall $met
296296
new ObjectType(\Bug7385\Iface::class)
297297
);
298298

299+
throw new \Error('reached: ' . $type->describe(\PHPStan\Type\VerbosityLevel::precise()));
300+
299301
return $this->typeSpecifier->create($methodCall->var, $type, TypeSpecifierContext::createNull());
300302
}
301303
}

0 commit comments

Comments
 (0)