Skip to content

Commit 81adbb6

Browse files
authored
190 Fix ignore all errors
In #136 we accidentally ignored all errors instead of just the one error: "Unsafe usage of new static()." This results in drupal-check failing with the following message: -- -------------------------------------------------------------------------- Error -- -------------------------------------------------------------------------- Ignored error #Unsafe usage of new static()# has an unescaped '()' which leads to ignoring all errors. Use '\(\)' instead. -- --------------------------------------------------------------------------
1 parent 42d28c8 commit 81adbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/CheckCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
153153
$configuration_data['parameters']['level'] = 4;
154154

155155
$ignored_analysis_errors = [
156-
'#Unsafe usage of new static()#'
156+
'#Unsafe usage of new static\(\)#'
157157
];
158158
$configuration_data['parameters']['ignoreErrors'] = array_merge($ignored_analysis_errors, $configuration_data['parameters']['ignoreErrors']);
159159
} else {

0 commit comments

Comments
 (0)