8000 backport regression test from 3.4 · symfony/symfony@a9ab167 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9ab167

Browse files
committed
backport regression test from 3.4
1 parent c337bf6 commit a9ab167

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Symfony/Component/PropertyInfo/Tests/Extractors/PhpDocExtractorTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,21 @@ public function typesProvider()
7474
array('staticSetter', null, null, null),
7575
);
7676
}
77+
78+
public function testParamTagTypeIsOmitted()
79+
{
80+
$this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\PhpDocExtractors\OmittedParamTagTypeDocBlock', 'omittedType'));
81+
}
82+
}
83+
84+
class OmittedParamTagTypeDocBlock
85+
{
86+
/**
87+
* The type is omitted here to ensure that the extractor doesn't choke on missing types.
88+
*
89+
* @param $omittedTagType
90+
*/
91+
public function setOmittedType(array $omittedTagType)
92+
{
93+
}
7794
}

0 commit comments

Comments
 (0)
0