You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #5008 Enhancement: Social justification applied (gbyrka-fingo)
This PR was squashed before being merged into the 2.15 branch.
Discussion
----------
Enhancement: Social justification applied
The time has come to rename functionalities that for some might sound racist.
Once this is approved I'll rename annotation-black-list and annotation-white-list in the master branch.
Commits
-------
9c4120b Enhancement: Social justification applied
Copy file name to clipboardExpand all lines: src/Fixer/ClassNotation/FinalInternalClassFixer.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public function configure(array $configuration = null)
44
44
);
45
45
46
46
if (\count($intersect)) {
47
-
thrownewInvalidFixerConfigurationException($this->getName(), sprintf('Annotation cannot be used in both the white- and black list, got duplicates: "%s".', implode('", "', array_keys($intersect))));
47
+
thrownewInvalidFixerConfigurationException($this->getName(), sprintf('Annotation cannot be used in both the include and exclude list, got duplicates: "%s".', implode('", "', array_keys($intersect))));
48
48
}
49
49
}
50
50
@@ -152,7 +152,7 @@ protected function createConfigurationDefinition()
152
152
->setDefault(['@internal'])
153
153
->setNormalizer($annotationsNormalizer)
154
154
->getOption(),
155
-
(newFixerOptionBuilder('annotation-black-list', 'Class level annotations tags that must be omitted to fix the class, even if all of the white list ones are used as well. (case insensitive)'))
155
+
(newFixerOptionBuilder('annotation-black-list', 'Class level annotations tags that must be omitted to fix the class, even if all of the excluded ones are used as well. (case insensitive)'))
156
156
->setAllowedTypes(['array'])
157
157
->setAllowedValues($annotationsAsserts)
158
158
->setDefault([
@@ -196,7 +196,7 @@ private function isClassCandidate(Tokens $tokens, $index)
sprintf('#^%s$#', preg_quote('[final_internal_class] Annotation cannot be used in both the white- and black list, got duplicates: "internal123".', '#'))
292
+
sprintf('#^%s$#', preg_quote('[final_internal_class] Annotation cannot be used in both the include and exclude list, got duplicates: "internal123".', '#'))
0 commit comments