Skip to content

Commit

Permalink
TextOutput: show application name + version
Browse files Browse the repository at this point in the history
Fixes 95

Note: I'm explicitly marking this PR as for the 2.0 release as, per the discussion in 95, this change _could_ break scripts which parse the output.
  • Loading branch information
jrfnl authored and grogy committed Apr 10, 2024
1 parent 2c80058 commit 7af94b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Outputs/TextOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHP_Parallel_Lint\PhpParallelLint\Outputs;

use PHP_Parallel_Lint\PhpParallelLint\Application;
use PHP_Parallel_Lint\PhpParallelLint\ErrorFormatter;
use PHP_Parallel_Lint\PhpParallelLint\Result;
use PHP_Parallel_Lint\PhpParallelLint\Writers\WriterInterface;
Expand Down Expand Up @@ -99,7 +100,7 @@ public function setTotalFileCount($count)
*/
public function writeHeader($phpVersion, $parallelJobs, $hhvmVersion = null)
{
$this->write("PHP {$this->phpVersionIdToString($phpVersion)} | ");
$this->write('PHP-Parallel-Lint ' . Application::VERSION . " | PHP {$this->phpVersionIdToString($phpVersion)} | ");

if ($hhvmVersion) {
$this->write("HHVM $hhvmVersion | ");
Expand Down

0 comments on commit 7af94b1

Please sign in to comment.