Skip to content

Commit

Permalink
Merge branch 'master' into stellr
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Apr 12, 2024
2 parents c70e131 + 306005e commit 6164fed
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Stellr/Sniffs/Commenting/FunctionCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,6 @@ protected function processParams(File $phpcsFile, $stackPtr, $commentStart)
}

$phpcsFile->addError($error, $stackPtr, $errorCode, $data);
} else if ($typeHint !== $compareTypeHint && $typeHint !== '?'.$compareTypeHint) {
$error = 'Expected type hint "%s"; found "%s" for %s';
$data = [
$suggestedTypeHint,
$typeHint,
$param['var'],
];
$phpcsFile->addError($error, $stackPtr, 'IncorrectTypeHint', $data);
}//end if
} else if ($suggestedTypeHint === '' && isset($realParams[$pos]) === true) {
$typeHint = $realParams[$pos]['type_hint'];
Expand Down

0 comments on commit 6164fed

Please sign in to comment.