Skip to content

Internal error for which the description of the problem refers to a file that does not do what the error says #6428

Closed
@benja-M-1

Description

@benja-M-1

Bug report

Hi 👋🏻,

tl;dr: problem solved bug it might be some issue underlying, see my last comment

I am sorry for the long and unprecise title, I don't really know how to describe the issue in one sentence...

PHPStan fails in our CI with the following error:
Screenshot 2022-01-21 at 09 57 10

I tried to reproduce it locally but I can't, PHPStan succeeds.
edit: I cleared PHPStan's cache and now it fails but does not with the --debug flag.

I tried to run the command on the container in the CI via SSH, it fails with the sameerror as expected. Then I tried to add the --debug flag and this time it succeeds. I tried again without the flag, it still fails. I removed the cache and tried again, it still fails.

What I don't understand is that there is no call to a "name" property in this file. So maybe it is rather PHPStan that raises the error internally when analyzing this file.

Code snippet that reproduces the problem

I don't have any way to reproduce it locally, I don't understand the issue enough, I am sorry.

Expected output

I expected to not have error on every environment.

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

Ooooh yes! It does a lot. Thank you so much for building it 🙏🏻

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions