Skip to content

Commit dbf0a11

Browse files
committed
Use ParserFactory::createForHostVersion() for creating a default PhpParser
1 parent 91e066c commit dbf0a11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TyphoonReflector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function build(
4646
): self {
4747
return new self(
4848
phpParserReflector: new PhpParserReflector(
49-
phpParser: $phpParser ?? (new ParserFactory())->createForNewestSupportedVersion(),
49+
phpParser: $phpParser ?? (new ParserFactory())->createForHostVersion(),
5050
phpDocParser: new PhpDocParser($tagPrioritizer),
5151
),
5252
nativeReflector: new NativeReflector(),

0 commit comments

Comments
 (0)