public function testPhp7TypeDeclarationWithStringTypeThatAllowsNull()
{
$classInfo = $this->reflector->reflect(Php7ParameterTypeDeclarations::class);
$method = $classInfo->getMethod('foo');
$stringParamType = $method->getParameter('stringParamAllowsNull')->getType();
$this->assertSame('string', (string) $stringParamType);
$this->assertTrue($stringParamType->isBuiltin());
$this->assertTrue($stringParamType->allowsNull());
}