cms
cms copied to clipboard
[5.x] Ensure `minimum-stability` is `dev` before requiring new addon
This pull request fixes an issue with the php please make:addon command where Composer will throw an error when requiring a new addon when an app's minimum-stability setting is anything other than dev.
Ideally we should avoid that.
If you don't have mininum-stability, you're still able to do composer require my/addon dev-master and it'll work.
It's just a matter of figuring out what branch it needs. dev-master or dev-main. Composer figures it out under the hood somehow. Maybe we can lift the logic from there. 🤔
Going to mark this as a draft for now, until I have time to dig into this some more.
I think this does it. Wanna check?
Yep, that does it! Thanks for taking a look.