-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run Mozart on a composer.json that has platform requirements locked to an older PHP version? #95
Comments
Yeah, this is something that might be classified as kind of an oversight from my end. I don't think there is a way you can work around this, right now. Mozart might be better off as one of the developer tools, that aren't tied to the project in its |
Awesome, thanks for the reply, @coenjacobs. Please feel free to close this issue. |
@Luc45 I will not close it, as it is a valid issue. Mozart is currently not able to deal with these kind of situations all too well. It's actually one of the main issues that I've tried to explain in #96 now, where I'm discussing the future of Mozart. I do not have an immediate solution for this specific issue, but I am very much keen on solving it in the nearby future. |
I think I've got a solution for you –– I've created a Please try:
You should be able to put that inside your PR #105 would make an official build on each Mozart release. |
@BrianHenryIE that looks great, thank you! I've already moved on to another solution, but if I try this out I'll post here the results. Either way, this was a very necessary PR for other people as well. |
@Luc45 The above PHAR release that @BrianHenryIE mentioned is now merged into
All three work the exact same, as in that you still configure them in your projects |
Our plugin is compatible with PHP 5.6+. To make sure all our dependencies are also compatible with these PHP versions, we have specified a platform requirement in
composer.json
:However, Mozart requires PHP 7.2, and as far as I understand, it must be placed in the same
composer.json
as the one being prefixed.I can't just run
composer update --ignore-platform-reqs
to install Mozart because then the PHP version check step will be skipped when resolving my dependencies, installing libraries that are not compatible with PHP 5.6.Can I use Mozart on a plugin that has PHP platform requirements such as this one?
The text was updated successfully, but these errors were encountered: