Skip to content

Commit a07bfb6

Browse files
committed
Bump PHPStan to level 2 when doing deprecations
1 parent e6b1aef commit a07bfb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/CheckCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
156156
}
157157

158158
if ($this->isAnalysisCheck) {
159-
$configuration_data['parameters']['level'] = 4;
159+
$configuration_data['parameters']['level'] = 6;
160160

161161
$ignored_analysis_errors = [
162162
'#Unsafe usage of new static\(\)#'
163163
];
164164
$configuration_data['parameters']['ignoreErrors'] = array_merge($ignored_analysis_errors, $configuration_data['parameters']['ignoreErrors']);
165165
} else {
166-
$configuration_data['parameters']['customRulesetUsed'] = true;
166+
$configuration_data['parameters']['level'] = 2;
167167
}
168168

169169
if ($this->isDeprecationsCheck) {

0 commit comments

Comments
 (0)