8000 minor #26103 [PropertyInfo] backport regression test from 3.4 (xabbuh) · symfony/symfony@36e79f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36e79f7

Browse files
committed
minor #26103 [PropertyInfo] backport regression test from 3.4 (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [PropertyInfo] backport regression test from 3.4 | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- a9ab167 backport regression test from 3.4
2 parents e6245ba + a9ab167 commit 36e79f7

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