diff --git a/src/Command/FixerWorkerRunner.php b/src/Command/FixerWorkerRunner.php index ff6af16786a..163efa9bff0 100644 --- a/src/Command/FixerWorkerRunner.php +++ b/src/Command/FixerWorkerRunner.php @@ -58,6 +58,8 @@ final class FixerWorkerRunner public function __construct( #[AutowiredParameter] private array $allConfigFiles, + #[AutowiredParameter] + private string $usedLevel, private IgnoredErrorHelper $ignoredErrorHelper, private ResultCacheManagerFactory $resultCacheManagerFactory, private AnalyserResultFinalizer $analyserResultFinalizer, @@ -131,6 +133,8 @@ public function run( 'action' => 'analysisStart', 'result' => [ 'analysedFiles' => $inceptionFiles, + // the level of the config read for this analysis, it may have changed since PHPStan Pro started + 'ruleLevel' => $this->usedLevel, ], ]);