Skip to content

Support wildcards when referencing stub files in the config #4342

@georgms

Description

@georgms

Feature request

Currently stub files have to be explicitly referenced in the config, using wildcards is not possible. So, whenever I add a stub I have to remember to also add it to the config file or it will have no effect. This might give me a hard time, wondering why my stub files has no effect when I forget to add it to the config file.

Similar to other configuration options it would be great if I could just use wildcards when referencing my stubs. So instead of

parameters:
  stubFiles:
    - phpstan/stubs/Zendesk/API/Resources/Core/Search.stub

I could just do

parameters:
  stubFiles:
    - phpstan/stubs/**/*.stub

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