-
-
Notifications
You must be signed in to change notification settings - Fork 934
Open
phpstan/phpstan-src
#4699Labels
Description
Bug report
I'm trying to get PHPStan to put its tmpfiles in a separate location specifically when run in PhpStorm, and I don't really want to create an extra .neon just for this.
Not sure if there's a proper way to do this with just CLI options, but as per title, overriding sys_temp_dir did not work. Overriding TMPDIR does work, but PhpStorm doesn't give me a way to set environment variables either, so I was really hoping this would work.
Code snippet that reproduces the problem
No response
Expected output
$ php-8.5-pm5 -dsys_temp_dir=./.cache/phpstan vendor/bin/phpstan.phar analyze
should put tmpfiles only in ./.cache/phpstan, but it puts them in both .cache/phpstan and /tmp/phpstan.
In debug mode it works as I expected.
Did PHPStan help you today? Did it make you happy in any way?
No response