diff --git a/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php b/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php index ad6c04dfb3a..b32b0d39d52 100644 --- a/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php +++ b/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php @@ -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'], ]; @@ -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; }