public function testPhp7TypeDeclarationWithoutType() { $classInfo = $this->reflector->reflect(Php7ParameterTypeDeclarations::class); $method = $classInfo->getMethod('foo'); $this->assertNull($method->getParameter('noTypeParam')->getType()); }