Skip to content

Commit

Permalink
fix: Configure the printer PHP version to 5.3 by default
Browse files Browse the repository at this point in the history
See the discussion in nikic/PHP-Parser#1007.
  • Loading branch information
theofidry committed Jun 16, 2024
1 parent 226ba7d commit e7bc7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpParser/Printer/StandardPrinterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function createPrinter(?PhpVersion $phpVersion = null): Printer
{
return new StandardPrinter(
new Standard([
'phpVersion' => $phpVersion,
'phpVersion' => $phpVersion ?? PhpVersion::fromComponents(5, 3),
]),
);
}
Expand Down

0 comments on commit e7bc7ef

Please sign in to comment.