Skip to content

Commit

Permalink
Rename attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacePossum committed Jun 30, 2020
1 parent 0ec3276 commit 8624c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class PhpdocToParamTypeFixer extends AbstractFixer implements Configuratio
/**
* @var array{int, string}[]
*/
private $blacklistFuncNames = [
private $excludeFuncNames = [
[T_STRING, '__clone'],
[T_STRING, '__destruct'],
];
Expand Down Expand Up @@ -138,7 +138,7 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens)
}

$funcName = $tokens->getNextMeaningfulToken($index);
if ($tokens[$funcName]->equalsAny($this->blacklistFuncNames, false)) {
if ($tokens[$funcName]->equalsAny($this->excludeFuncNames, false)) {
continue;
}

Expand Down

0 comments on commit 8624c88

Please sign in to comment.