Skip to content

Large memory consumtion  #4401

@fezfez

Description

@fezfez

Bug report

When a run phpstan i got a large memory consumption (2G~) on code base with 2500 class
After running phpstan with --debug -vvv option i found a class that consume 338MB (!).

Code snippet that reproduces the problem

i made a little repository with a complete reproduction case https://github.com/fezfez/phpstan-memory

Expected output

I think the expected output must be the same usage of memory, because none of the class are used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions