Skip to content

Commit f2057d4

Browse files
committed
Add extra deprecation
1 parent fc9a233 commit f2057d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/DocBlock/Tags/Factory/ParamFactory.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace phpDocumentor\Reflection\DocBlock\Tags\Factory;
66

7+
use Doctrine\Deprecations\Deprecation;
78
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
89
use phpDocumentor\Reflection\DocBlock\Tag;
910
use phpDocumentor\Reflection\DocBlock\Tags\Param;
@@ -37,6 +38,14 @@ public function create(PhpDocTagNode $node, Context $context): Tag
3738
$tagValue = $node->value;
3839

3940
if ($tagValue instanceof InvalidTagValueNode) {
41+
Deprecation::trigger(
42+
'phpdocumentor/reflection-docblock',
43+
'https://github.com/phpDocumentor/ReflectionDocBlock/issues/362',
44+
sprintf(
45+
'Param tag value "%s" is invalid, falling back to legacy parsing. Please update your docblocks.',
46+
$tagValue->value
47+
)
48+
);
4049
return Param::create($tagValue->value, $this->typeResolver, $this->descriptionFactory, $context);
4150
}
4251

0 commit comments

Comments
 (0)