Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use ECS because of PHPStan version #214

Closed
FabienSalles opened this issue Dec 21, 2020 · 1 comment
Closed

Impossible to use ECS because of PHPStan version #214

FabienSalles opened this issue Dec 21, 2020 · 1 comment

Comments

@FabienSalles
Copy link

FabienSalles commented Dec 21, 2020

Fix by this merge request : #212

Currently, if you do :

  1. git clone https://github.com/Sylius/PluginSkeleton.git
  2. composer install
  3. vendor/bin/ecs
    You will get an error Class "Symplify\PackageBuilder\Console\HelpfulApplicationTrait" not found while loading "Symplify\EasyCodingStandard\Console\EasyCodingStandardConsoleApplication".
    This php trait is removed in symplify/package-builder

The version of ECS need to be update to 8.3 instead of 8.1 but we can't update it due to phpstan conflict version with the composer.json file.

To reproduce you just have to had "symplify/easy-coding-standard": "8.3.48 as 8.1.19" in require-dev dependencies and see this error :

Problem 1
    - symplify/coding-standard 8.3.48 requires phpstan/phpstan ^0.12.40 -> found phpstan/phpstan[0.12.40, ..., 0.12.64] but it conflicts with your root composer.json require (0.12.25).
    - symplify/easy-coding-standard 8.3.48 requires symplify/coding-standard ^8.3.48 -> satisfiable by symplify/coding-standard[8.3.48].
    - Root composer.json requires symplify/easy-coding-standard 8.3.48 as 8.1.19 -> satisfiable by symplify/easy-coding-standard[8.3.48].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

If you change the version of phpstan with ^0.12 and update, everything will be back to normal.

@FabienSalles
Copy link
Author

The PR is merged, I closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant