symfony / flex

Composer plugin for Symfony
MIT License
4.15k stars 181 forks source link

Keep existing constraints in package.json #965

Closed smnandre closed 1 year ago

smnandre commented 1 year ago

When a dependency constraint is already set in the package.json, the PackageSynchroniser replaces it with even if the constraint is valid.

This PR changes this behaviour and let the constraint untouched if it matches the one provided by the PHP package.

Related issues:

smnandre commented 1 year ago

Thank you both for your review and your suggestions 😃

nicolas-grekas commented 1 year ago

Thank you @smnandre.