Skip to content

Commit e7bc7ef

Browse files
committed
fix: Configure the printer PHP version to 5.3 by default
See the discussion in nikic/PHP-Parser#1007.
1 parent 226ba7d commit e7bc7ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpParser/Printer/StandardPrinterFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function createPrinter(?PhpVersion $phpVersion = null): Printer
2323
{
2424
return new StandardPrinter(
2525
new Standard([
26-
'phpVersion' => $phpVersion,
26+
'phpVersion' => $phpVersion ?? PhpVersion::fromComponents(5, 3),
2727
]),
2828
);
2929
}

0 commit comments

Comments
 (0)