Closed mhujer closed 5 years ago
Awesome, could you update the PR with the latest changes from master
and see if the tests pass?
@florianeckerstorfer rebased, but the build is failing for <PHP7.0 probably because of the conflict
rule. I spent some time trying to figure it out, but without success.
Either the conflict
rule can be removed, or the support for long-dead PHP versions can be dropped.
@mhujer the conflict you have added - <1.38.1||<2.12.1
works like this:
1.39 < 1.38.1 || 1.39 < 2.12.1
=> false || true
=> true
=> CONFLICT! - sorry mate, you have raised a conflict, you can't be installedWe can go 2 ways:
require
as you did@kubawerlos thanks for pointing that out! I didn't occur to me before.
I fixed it by specifying the ranges with lower band:
"conflict": {
"twig/twig": ">=1,<1.38.1|>=2,<2.12.1"
},
(got inspiration from https://github.com/Roave/SecurityAdvisories/blob/master/composer.json - they have quite a few conflict rules there).
I have absolutely no knowledge about the conflict rules in Composer, @kubawerlos do you think this is fine now?
@florianeckerstorfer looks fine
Twig provides namespaced class aliases since 1.38.1 and 2.12.1, so this should work on all recently released Twig versions.