Closed sidz closed 10 months ago
Should it be current version rather than newest version ?
Hey @exussum12.
createForNewestSupportedVersion
is an equivalent to previous behavior $factory->create(ParserFactory::PREFER_PHP7)
see Upgrade guide: https://github.com/nikic/PHP-Parser/blob/master/UPGRADE-5.0.md
createForHostVersion() was what I was thinking but happy either way
Yeah, you are right. Replaced to createForHostVersion
Cheers @exussum12
This PR adds PHP-Parser 5 support