Repository navigation
Conversation
|
I basically had the same experience, see #4237 (comment) where setting If this would "work" out of the box it would be perfect, otherwise a change like this is great, yeah :) |
|
I've seen But of course, out of the box would be perfect :-) |
|
I'd rather improve the situation than document the bad behaviour :) What about this:
WDYT? |
|
That sounds even better! In my case, it should be a hash of a config file path, not just dir path. I'm using two Do you think a hash of a config file is doable? |
|
I'll try to think of all the variables that are relevant for this and we'll see :) |
|
Cool, thanks! I can then update this PR to document the new behavior unless of course you'll do it :-) |
|
Opened an issue to make sure it's not lost: #7379 |
So, uhh, this took me a really long time. Since the day the result cache has been introduced, I've had a feeling that something is not right but it was always just a feeling. Until today. (Spoiler alert: my config wasn't perfect)
I'm running PHPStan on different projects (sometimes even multiple PHPStan configs in one project) and finally I've realized that the result cache from one project was being overwritten by a result cache from some other project (or config file).
I've read the related documentation several times but only today it eventually occurred to me. This might help other people like me (I know you're there, hello?).