I want to run MEQP tool on Magento 2.3.1 project and the PHP version is 7.1. We used some of the 7.1 supported syntax so the MEQP tool is throwing the errors. Please help to overcome this.
Have you checked for this solution? Or You there is any issue with PHP 7.3 that you are facing can you please share if any?
Thanks
Sorry I just updated my question. Magento version is 2.3.1 and PHP version is 7.1.
The suggested post will not help because it is totally different error. I was able to generate the report and report has the syntax errors which are actually allowed in php 7.1
Tool: https://github.com/magento/magento-coding-standard
This is the PHP syntax error I got in the report:
syntax error, unexpected ':', expecting ';' or '{'
Relevant Magento line:
public function setExtensionFromData(Order $order): Order
Actually there is some mis-configuration with PHP. I resolved it. Thanks.