Skip to content

Commit 5540b49

Browse files
committed
Add warning for missing type hint.
1 parent 8624af2 commit 5540b49

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

PhpCollective/Sniffs/Commenting/TypeHintSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ public function process(File $phpcsFile, $stackPtr): void
118118
$tagComment = $phpcsFile->fixer->getTokenContent($tag + 2);
119119
$valueNode = static::getValueNode($tokens[$tag]['content'], $tagComment);
120120

121-
122-
123121
if ($valueNode instanceof InvalidTagValueNode || $valueNode instanceof TypelessParamTagValueNode) {
124122
if (!isset($valueNode->type)) {
125123
$phpcsFile->addWarning('%s type hint is missing', $tag, 'MissingParamType', [$tokens[$tag]['content']]);

0 commit comments

Comments
 (0)