Skip to content

CLI: Arguments checked as file paths #10465

@gneuvill

Description

@gneuvill

Hi,

New to psalm, I successfully installed it through composer, generated a config file and run it. But as I tried to enable some plugins (previously installed with composer also), I consistently got this abstruse response : Cannot locate enable.

I traced the error using echo statements up to the call to CliUtils::getPathsToCheck(null) in Psalm/Config.php l. 1305. Once I commented out that call, the 'enable' command ran to completion without errors. (so 92bcc5c looks like the culprit and the "enable" argument was apparently treated as a file path)

I am on linux, using php 8.2.12, composer 2.6.5, psalm 5.17.

Hope that will help.

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