We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1835d08 commit 78da079Copy full SHA for 78da079
src/Fixer/ControlStructure/NoBreakCommentFixer.php
@@ -74,15 +74,15 @@ protected function createConfigurationDefinition()
74
(new FixerOptionBuilder('comment_text', 'The text to use in the added comment and to detect it.'))
75
->setAllowedTypes(['string'])
76
->setAllowedValues([
77
- function ($value) {
+ static function ($value) {
78
if (\is_string($value) && Preg::match('/\R/', $value)) {
79
throw new InvalidOptionsException('The comment text must not contain new lines.');
80
}
81
82
return true;
83
},
84
])
85
- ->setNormalizer(function (Options $options, $value) {
+ ->setNormalizer(static function (Options $options, $value) {
86
return rtrim($value);
87
})
88
->setDefault('no break')
0 commit comments