Skip to content

--no-patch option returns error code 1 on composer script #1270

@gmponos

Description

@gmponos

Inside my composer I have added the following command/script

{ ... "scripts": { "phpcbf": [ "php vendor/bin/phpcbf mypath1 --standard=ruleset1.xml --extensions=php --no-patch", "php vendor/bin/phpcbf mypath2 --standard=ruleset2.xml --extensions=php --no-patch" ], } ... } 

When I execute

composer phpcbf I get

Script php vendor/bin/phpcbf mypath1 --standard=ruleset1.xml --extensions=php --no-patch handling the phpcbf event returned with error code 1 

As a result the second script is never executed. If I remove the --no-patch option the second script is executed.

Version: 2.7.1

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