Skip to content

Commit b04a3cd

Browse files
committed
PHPStan Pro - pass editorUrl
1 parent f2258ad commit b04a3cd

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

conf/config.neon

+1
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ services:
576576
allConfigFiles: %allConfigFiles%
577577
cliAutoloadFile: %cliAutoloadFile%
578578
bootstrapFiles: %bootstrapFiles%
579+
editorUrl: %editorUrl%
579580

580581
-
581582
class: PHPStan\Dependency\DependencyResolver

phpstan.neon.dist

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
includes: [ build/phpstan.neon ]
2+
3+
parameters:
4+
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'

src/Command/FixerApplication.php

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function __construct(
8888
private array $allConfigFiles,
8989
private ?string $cliAutoloadFile,
9090
private array $bootstrapFiles,
91+
private ?string $editorUrl,
9192
)
9293
{
9394
}
@@ -120,6 +121,7 @@ public function run(
120121
'projectConfigFile' => $projectConfigFile,
121122
'filesCount' => $filesCount,
122123
'phpstanVersion' => ComposerHelper::getPhpStanVersion(),
124+
'editorUrl' => $this->editorUrl,
123125
]]);
124126
$decoder->on('data', function (array $data) use (
125127
$output,

0 commit comments

Comments
 (0)