Skip to content

Commit

Permalink
tformat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qrcf committed Apr 10, 2024
1 parent a011e36 commit 967a15b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use PhpParser\Parser\Php7;
use PhpParser\PhpVersion;
use PHPUnit\Runner\Version;
use PHPUnit\TextUI\XmlConfiguration\Php;

class TFormat
{
Expand All @@ -15,7 +16,7 @@ class TFormat
public function __construct()
{
$this->lexer = new Emulative(phpVersion: PhpVersion::getHostVersion());
$this->parser = new Php7($this->lexer);
$this->parser = new Php7($this->lexer, PhpVersion::getHostVersion());
}

public function format(BaseFormatter $formatter)
Expand Down

0 comments on commit 967a15b

Please sign in to comment.