phpmd remote interpreter and php version
Answered
Hi all,
I have one problem with phpmd plugin to PhpStorm.
I have php on my server and configured php interpreter in PhpStorm.
Path to php in configuration is: /bin/usr/php71
I have two versions of php on server - php (php 5.6.) and php71 (php 7.1. version).
But I got error: "phpmd: PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in".
It's look like phpmd is called by default php (php 5.6), not php71 alias. Can I do something with that or I have to link php to php 7.1. version?
Please sign in to leave a comment.
PhpStorm doesn't get to choose what interpreter Mess Detector uses - the
PHP Mess Detector pathleads to a shell script that callsphp, so you need to makephpto be resolved tophp71on the server.Ok, thank you for reply and help. We know what to do now :)