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?


2 comments
Comment actions Permalink

PhpStorm doesn't get to choose what interpreter Mess Detector uses - the PHP Mess Detector path leads to a shell script that calls php, so you need to make php to be resolved to php71 on the server.

0
Comment actions Permalink

Ok, thank you for reply and help. We know what to do now :)

0

Please sign in to leave a comment.