diff --git a/TyphoonReflector.php b/TyphoonReflector.php index 675ee1f..4c99f64 100644 --- a/TyphoonReflector.php +++ b/TyphoonReflector.php @@ -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(),