🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Trait errors behave differently when cached vs non-cached. #14943

Description

@stijnveeke

Bug report

I notice when running phpstan from my local pc that reports about ignored error patterns involving traits will go the first run without cache ignored, after a run with cache these errors won't be reported. I've got no way to reproduce this in the playground as it involves the caching logic. This happend while trying to update from 2.2.2 -> 2.2.5 before that it did not happen for me.

Currently

Potentially relates to: #14932
Potentially same issue as #14883 but op never mentioned what kind of custom modification caused it in his use-case.

Code snippet that reproduces the problem

No response

Expected output

I expect both the cached an non-cached results to return the same errors.

Did PHPStan help you today? Did it make you happy in any way?

Yes it helps a lot, now a bit stuck on updating tho.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions