Skip to content

Wildcard paths do not work in config file #1992

@rieschl

Description

@rieschl

Summary of a problem or a feature request

Wildcard paths do not work in neon file.

Code snippet that reproduces the problem

When running PHPstan in a ZendFramework directory structure, I want so scan all src folders in all modules, i.e. module/*/src. On the command line (vendor/bin/phpstan analyse module/*/src) this works as expected, but when trying to set the path in phpstan.neon like this:

parameters:
    paths:
        - module/*/src

I get the following error:
Path [...]/module/*/src does not exist

Expected output

The wildcard path in the config file should behave the same way as on the command line.

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