Skip to content

Loading boostrap files from phpstan extensions #9782

Description

@bbrala

Feature Request

Rector allows to load phpstan configs so detection gets better. What i did notice is that is does not load the bootstrap files of the extensions. Thie was kinda metioned here #8006 but that bootstrap file only really loads a constant i think.

When combining drupal-rector with phpstan-drupal, i noticed the bootstrap files were not loaded.

I mostly wonder if this was a explicit decision to minimize the surface between the two modules, or that it is an oversight?

I can make a PR to load bootstrap files into rector, but not sure if you'd want that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions