phpstan-src
phpstan-src copied to clipboard
Refactor ComposerPhpVersionFactory
extracts ComposerPhpVersionParser to allow re-use of version-string into min/max PhpVersion parsing.
I think this will be usefull in https://github.com/phpstan/phpstan-phpunit/pull/269 to build PhpVersion min/max for versions in PHPUnits #[RequiresPhp('5.*')]-attribute.
This pull request has been marked as ready for review.