cancel
Showing results for 
Search instead for 
Did you mean: 

"Php require section in composer is empty" - can't upload the package

"Php require section in composer is empty" - can't upload the package

Hi

 

I'm trying to upload a new extension package to the Marketplace, but this time it shows me the error "Php require section in composer is empty."

I have tried different variations of composer.json file: initially it was without php requirement, also tried with this, but no luck:

 

"require": {
    "magento/module-catalog": "~101.0.*",
    "php": "~7.0.*"
  }
2 REPLIES

Re: "Php require section in composer is empty" - can't upload the package

Hi @Snowcore,



Could you please try the composer file in the following format?

 

"require": {
  "php": "^7.0",
  "magento/module-catalog": "~101.0.*",
}


Best regards.

Gabriel

 

If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".

Re: "Php require section in composer is empty" - can't upload the package

Hi @Gabriel Guarino

 

It seems like there is a typo in your example, please remove comma from the last requirement.

"magento/module-catalog": "~101.0.*"

 I recommend to follow Magento's composer file and include full list of supported PHP versions to avoid any future conflicts.

"php": "~5.6.5|7.0.2|7.0.4|~7.0.6"