Skip to content

Generated Propel2 models kill phpstan analysis performance #1891

Open
@matweew

Description

@matweew

All the time when Propel classes are used in your code or just mentioned as phpdoc @return,
the code generated by Propel2 slowdowns phpstan static analysis process very much.

Read the conversation on this issue phpstan/phpstan#4581 for more details.

As I understood the problematic code is in $Model$Query classes and a lot of phpdocs @method inside.

A possible solution (not checked) is to generate native methods of the class instead of only @method annotations.

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