2

I got this warning :

Warning: Unsupported declare 'strict_types' in /home/SITE_NAME/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 6

And this error :

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/SITE_NAME/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 55

Every time that I run a composer commande line like :

composer -V

I have : CentOS Linux release 7.5.1804 (Core); PHP 7.2 (via cPanel) ; Latest magento 2.3.0 CE

Someone can help?

  • Post this in answer, so that it will helpful for others – Shoaib Munir Feb 14 at 4:16
1

Problem resolved, the problem was in PHP version! HTTP requests use PHP7.2 but Commande line use the default PHP and it was PHP5.6!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.