phpstan: PHPStorm problem with vendor/bin/phpstan file

Ever since upgrading to PHPStan 0.12 I’m often running into the following issue when using PHPStorm. While searching my code with Ctrl+Shift+F, PHPStorm sometimes also searches this file. (It’s both in vendor/bin/phpstan and vendor/phpstan/phpstan/phpstan.) It doesn’t have the .phar suffix so I can’t tell PHPStorm to exclude it and PHPStorm doesn’t consider it a binary file so it tries to search it regardless of the size. This is causing my PHPStorm to freeze for a while when searching sometimes which is extremely annoying.

As far as I can tell this file is identical to the phpstan.phar. Do we need both? It would help me a lot if you could remove this file from the project or replace it with some tiny script that just calls phpstan.phar.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 35 (29 by maintainers)

Most upvoted comments

I excluded the file phpstan.phar in settings ( Settings -> Editor -> File Types -> Ignore Files and Folders) image

It would be nice to have to get rid of the big phpstan file but I have other priorities myself right now what to work on in PHPStan.