Skip to content

Commit

Permalink
Fixed undefined variable according to PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 27, 2016
1 parent 78cd306 commit ae3ff6c
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -43,6 +43,8 @@ public function process(\PHP_CodeSniffer_File $phpcsFile, $returnTypePointer)
$phpcsFile->addError($afterColonMessage, $returnTypePointer, self::CODE_MULTIPLE_SPACES_BETWEEN_COLON_AND_TYPE);
}
$colonPointer = $phpcsFile->findPrevious(T_COLON, $beforeNamePointer - 1);
} else {
return;
}

$previousPointer = $colonPointer - 1;
Expand Down

0 comments on commit ae3ff6c

Please sign in to comment.