Use Semver::satisfies with a try catch (#42)
Use Semver::satisfies with a try catch (#42)

`'@package_version@' === Composer::VERSION` condition is not enough.

On composer snapshots, the full commit is given on this constant,
throwing unexpected value exceptions.

See: https://github.com/composer/composer/pull/5028#issuecomment-214482393

With this method, we are sure that any fail of Semver::satisfies will be properly handled.
Soullivaneuh/composer-versions-check