“Php require section in composer is empty” - can't upload a package to the Marketplace
-
06-10-2020 - |
Question
I have a problem with uploading new extension version to the Magento Marketplace. The error message is Php require section in composer is empty
My composer.json
file hasn't been changed (since previous approved versions on Marketplace) and it contains only one dependency:
"require": {
"magento/module-catalog": "~101.0.*"
}
I tried to add php dependency (tried different versions), but that doesn't help, error message remains the same.
Can't figure out what is wrong here? Have anyone experienced this issue on Marketplace?
Solution
"php require section" sounds like you need to require a PHP version now. For example to require any PHP 5.6 or 7.0 version:
"require": {
"php": "^5.6 || ^7.0",
"magento/module-catalog": "~101.0.*"
}
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange