Skip to content

Store baseline and neon configs as php code #8870

@thomas-0816

Description

@thomas-0816

Feature request

I'm requesting to store the baseline file in php code instead of neon format.
Using php code, we could also use opcache in cli with file_cache_only.
Our baseline is 167k loc with 8M in size.
When analyzing an empty php file, it takes 11s with the baseline.neon and 2s without the baseline.neon, so parsing the baseline takes about 8s on an amd 5825U.

Same for the rules.neon files. We use a couple of neon files in the "includes". When I include all configs, parsing an empty php file takes 11s, when I disable all in the include section, it takes 2s.

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

Yes, PHPStan is helping us every day, great tool!

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