We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90456d4 commit 8624af2Copy full SHA for 8624af2
PhpCollective/Sniffs/Commenting/TypeHintSniff.php
@@ -117,7 +117,14 @@ public function process(File $phpcsFile, $stackPtr): void
117
118
$tagComment = $phpcsFile->fixer->getTokenContent($tag + 2);
119
$valueNode = static::getValueNode($tokens[$tag]['content'], $tagComment);
120
+
121
122
123
if ($valueNode instanceof InvalidTagValueNode || $valueNode instanceof TypelessParamTagValueNode) {
124
+ if (!isset($valueNode->type)) {
125
+ $phpcsFile->addWarning('%s type hint is missing', $tag, 'MissingParamType', [$tokens[$tag]['content']]);
126
+ }
127
128
continue;
129
}
130
0 commit comments