Skip to content

Commit

Permalink
Pass current rule level to PHPStan Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 4, 2024
1 parent 4b77c01 commit 7af14fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ services:
cliAutoloadFile: %cliAutoloadFile%
bootstrapFiles: %bootstrapFiles%
editorUrl: %editorUrl%
usedLevel: %usedLevel%

-
class: PHPStan\Dependency\DependencyResolver
Expand Down
2 changes: 2 additions & 0 deletions src/Command/FixerApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public function __construct(
private ?string $cliAutoloadFile,
private array $bootstrapFiles,
private ?string $editorUrl,
private string $usedLevel,
)
{
}
Expand Down Expand Up @@ -121,6 +122,7 @@ public function run(
'filesCount' => $filesCount,
'phpstanVersion' => ComposerHelper::getPhpStanVersion(),
'editorUrl' => $this->editorUrl,
'ruleLevel' => $this->usedLevel,
]]);
$decoder->on('data', function (array $data) use (
$output,
Expand Down

0 comments on commit 7af14fb

Please sign in to comment.