public function testRemoveType()
{
$classInfo = $this->reflector->reflect(Php7ParameterTypeDeclarations::class);
$methodInfo = $classInfo->getMethod('foo');
$parameterInfo = $methodInfo->getParameter('intParam');
$parameterInfo->removeType();
$this->assertNull($parameterInfo->getType());
$this->assertStringStartsWith('public function foo($intParam', (new StandardPrettyPrinter())->prettyPrint([$methodInfo->getAst()]));
}