PhpStorm PhpUnit via phar autocomplete not working

前端 未结 2 941
野趣味
野趣味 2021-02-07 03:57

I have PHPStorm 8.0.1.

PHPUnit is installed via PHAR archive like:

wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /         


        
2条回答
  •  暖寄归人
    2021-02-07 04:57

    The above fix by Calin worked for me too on PhpStorm 2019.1.1, so I'll post it as an answer for easier visibility:

    Try right clicking on the .phar and clicking "Exclude phar from project", then clicking "Include phar into project" to refresh it.

    In my case, both the .phar file and my .idea folder were pulled from a git commit. I guess PhpStorm didnt realise that the file needed reimporting.

提交回复
热议问题