povils / phpmnd

PHP Magic Number Detector
MIT License
554 stars 46 forks source link

Add PHP-Parser 5 support #174

Closed sidz closed 10 months ago

sidz commented 10 months ago

This PR adds PHP-Parser 5 support

exussum12 commented 10 months ago

Should it be current version rather than newest version ?

sidz commented 10 months ago

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

exussum12 commented 10 months ago

createForHostVersion() was what I was thinking but happy either way

sidz commented 10 months ago

Yeah, you are right. Replaced to createForHostVersion

sidz commented 10 months ago

Cheers @exussum12