Skip to content

Commit

Permalink
Bump PHPStan to level 2 when doing deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman committed Mar 3, 2022
1 parent 9493c29 commit 385d7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

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

$ignored_analysis_errors = [
'#Unsafe usage of new static\(\)#'
];
$configuration_data['parameters']['ignoreErrors'] = array_merge($ignored_analysis_errors, $configuration_data['parameters']['ignoreErrors']);
} else {
$configuration_data['parameters']['customRulesetUsed'] = true;
$configuration_data['parameters']['level'] = 2;
}

if ($this->isDeprecationsCheck) {
Expand Down

0 comments on commit 385d7fe

Please sign in to comment.