Skip to content

Commit

Permalink
Use ParserFactory::createForHostVersion() for creating a default PhpP…
Browse files Browse the repository at this point in the history
…arser
  • Loading branch information
vudaltsov committed Apr 6, 2024
1 parent 91e066c commit dbf0a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TyphoonReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function build(
): self {
return new self(
phpParserReflector: new PhpParserReflector(
phpParser: $phpParser ?? (new ParserFactory())->createForNewestSupportedVersion(),
phpParser: $phpParser ?? (new ParserFactory())->createForHostVersion(),
phpDocParser: new PhpDocParser($tagPrioritizer),
),
nativeReflector: new NativeReflector(),
Expand Down

0 comments on commit dbf0a11

Please sign in to comment.