I am facing this type of error.Unable to access any CLI on Setup. Version Compataible is also match but still no luck.
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)
- PHP version : 7.2
- Magento version : 2.3
It's php version issue check the reference: https://github.com/magento/magento2/issues/17285
you need to make sure you php version is greater than 7.1.3 in command line by using the command php -v
Check the Magento 2.3 technology stack requirement:
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
php -v
in your command line. if you already check this then may be this issue occur because of some other thing. I will tell one of the possible cause of the issue may be you have other issue just wanted to help :)
Commented
Mar 13, 2019 at 7:46
php -v
?