Skip to content

Commit 94ba63c

Browse files
committed
always ignore Unsafe usage of new static()
1 parent 4a19447 commit 94ba63c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Command/CheckCommand.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
138138
'*/settings*.php',
139139
'*/node_modules/*'
140140
],
141-
'ignoreErrors' => [],
141+
'ignoreErrors' => [
142+
'#Unsafe usage of new static\(\)#'
143+
],
142144
'drupal' => [
143145
'drupal_root' => $this->drupalRoot,
144146
]
@@ -157,10 +159,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
157159

158160
if ($this->isAnalysisCheck) {
159161
$configuration_data['parameters']['level'] = 6;
160-
161-
$ignored_analysis_errors = [
162-
'#Unsafe usage of new static\(\)#'
163-
];
162+
$ignored_analysis_errors = [];
164163
$configuration_data['parameters']['ignoreErrors'] = array_merge($ignored_analysis_errors, $configuration_data['parameters']['ignoreErrors']);
165164
} else {
166165
$configuration_data['parameters']['level'] = 2;

0 commit comments

Comments
 (0)