Skip to content

Version command broken #8

@aaajeetee

Description

@aaajeetee

With the latest version (13.1.3), the vendor/bin/ecs --version command is broken:

$ vendor/bin/ecs --version
EasyCodingStandard 13.1.3
+ PHP_CodeSniffer 4.0.1
PHP Fatal error:  Uncaught Error: Class "PhpCsFixer\Console\Application" not found in /.../vendor/symplify/easy-coding-standard/src/Console/EasyCodingStandardConsoleApplication.php:54

If I look at the code in the vendor directory, the Application.php is indeed missing (https://github.com/easy-coding-standard/ecs/tree/13.1.3/vendor/friendsofphp/php-cs-fixer/src/Console). If I compare the friendsofphp/php-cs-fixer directory with another version, there seem to be more files missing.

I would be happy to create a PR for this, but it almost looks like the composer installation from ecs-src to ecs repo went wrong, or copying the files to the target repository went corrupt or something.

If I look at the latest tag of phpcsfixer (https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.1/src/Console), the Application.php is (still) there.

I can confirm that this works on version 13.1.2:

$ vendor/bin/ecs --version
EasyCodingStandard 13.1.2
+ PHP_CodeSniffer 4.0.1
+ PHP-CS-Fixer 3.95.1

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