backport regression test from 3.4

This commit is contained in:
Christian Flothmann 2018-02-09 08:49:27 +01:00
parent c337bf6810
commit a9ab167abf

View File

@ -74,4 +74,21 @@ class PhpDocExtractorTest extends TestCase
array('staticSetter', null, null, null),
);
}
public function testParamTagTypeIsOmitted()
{
$this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\PhpDocExtractors\OmittedParamTagTypeDocBlock', 'omittedType'));
}
}
class OmittedParamTagTypeDocBlock
{
/**
* The type is omitted here to ensure that the extractor doesn't choke on missing types.
*
* @param $omittedTagType
*/
public function setOmittedType(array $omittedTagType)
{
}
}