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