mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-16 22:58:15 +01:00
3640d18b87
Don't try to keep backwards-compatibility with the old factory style, which doesn't map cleanly onto supported options (we only have ONLY_PHP7/PREFER_PHP7, which should probably create a Php8 parser in terms of how they are used, but this would no longer match their names). Instead, I have backported the new createForNewestSupportedVersion() and createForHostVersion() methods to PHP-Parser 4.