Skip to content

Commit 7af14fb

Browse files
committed
Pass current rule level to PHPStan Pro
1 parent 4b77c01 commit 7af14fb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

conf/config.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ services:
586586
cliAutoloadFile: %cliAutoloadFile%
587587
bootstrapFiles: %bootstrapFiles%
588588
editorUrl: %editorUrl%
589+
usedLevel: %usedLevel%
589590

590591
-
591592
class: PHPStan\Dependency\DependencyResolver

src/Command/FixerApplication.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function __construct(
8888
private ?string $cliAutoloadFile,
8989
private array $bootstrapFiles,
9090
private ?string $editorUrl,
91+
private string $usedLevel,
9192
)
9293
{
9394
}
@@ -121,6 +122,7 @@ public function run(
121122
'filesCount' => $filesCount,
122123
'phpstanVersion' => ComposerHelper::getPhpStanVersion(),
123124
'editorUrl' => $this->editorUrl,
125+
'ruleLevel' => $this->usedLevel,
124126
]]);
125127
$decoder->on('data', function (array $data) use (
126128
$output,

0 commit comments

Comments
 (0)