Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Jul 3, 2017
1 parent 727678c commit 018b497
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ private function checkUselessDocComment(\PHP_CodeSniffer\Files\File $phpcsFile,
continue;
}

if (isset($matches[2])) {
$parametersContainDescription[$matches[2]] = true;
if (isset($matches[1])) {
$parametersContainDescription[$matches[1]] = true;
$containsUsefulInformation = true;
} elseif (isset($parametersNames[$parameterAnnotationNo])) {
$parametersContainDescription[$parametersNames[$parameterAnnotationNo]] = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ public function withDescription(string $param1, int $param2): void
{
}

/**
* @param string|null $param2 Has description
* @param string|null $param3 Has description
*/
public function moreParametersWithDescription(string $param1 = '', string $param2 = null, string $param3 = null): void
{
}

}

0 comments on commit 018b497

Please sign in to comment.