When use platform config #11980
Replies: 2 comments 2 replies
-
Be careful here, as PHP does not follow semantic versioning. I would recommend using |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what more to say that is not in the docs, but the platform config requires exact versions to fake the installed php version, it does not take a constraint. Require constraints should also require the minimum php version IMO, as the platform config is only read for the root composer package. If the package is meant to be installed as a dependency then having a required php version is a must. |
Beta Was this translation helpful? Give feedback.
-
Hello guys.
Could you give me an idea when I should use platform config.
Should I keep it as default configuration or just
"php": "^8.0"
should be enough?Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions