Skip to content

Commit

Permalink
use realpath binary paths
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 11, 2022
1 parent dbd7a17 commit 7ddc07a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/analysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
$phpBinary = 'php';
}

$cmd = $phpBinary.' '.__DIR__.'/../vendor/bin/phpstan analyse -c '.__DIR__.'/../phpstan.neon --error-format=json --no-progress 2>&1';
$phpstanBinary = realpath(__DIR__.'/../vendor/bin/phpstan');
$configPath = realpath(__DIR__.'/../phpstan.neon');

$cmd = $phpBinary .' '. $phpstanBinary .' analyse -c '. $configPath .' --error-format=json --no-progress 2>&1';

$output = shell_exec($cmd);
if ($output[0] === '{') {
Expand Down

0 comments on commit 7ddc07a

Please sign in to comment.