composer / semver

Semantic versioning utilities with the addition of version constraints parsing and checking.
MIT License
3.15k stars 76 forks source link

Fix invalid compilation code #92

Closed jderusse closed 4 years ago

jderusse commented 4 years ago

In some case, compilation return always true or false. The MultiConstrain compiler optimize it by removing && true and || false. But if all constraints are ignored the compiler returns an empty string. This PR fix it.

Seldaek commented 4 years ago

Thanks