Skip to content

How to restrict patch to specific PHP version? #598

Answered by cweagans
tenzap asked this question in Q&A
Discussion options

You must be logged in to vote

There is not a way to do that. You can write a patch resolver plugin to make that work, but a more straightforward option might be to change the patch so that whatever depends on a higher php version is conditionally invoked at runtime (if (version_compare(...)) { ... }).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tenzap
Comment options

Answer selected by tenzap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants