cweagans / composer-patches

Simple patches plugin for Composer
https://www.cweagans.net/project/composer-patches
BSD 3-Clause "New" or "Revised" License
1.49k stars 239 forks source link

Properly handle removal of all patches #537

Closed dotdash closed 4 months ago

dotdash commented 6 months ago

Description

Currently, if there are no patches provided, we assume that there's nothing to be done, but that's wrong in case that any installed package has patches applied, as they need to be re-installed without the patches now. So the early return needs to be removed.

Fixes #525

Related tasks

cweagans commented 4 months ago

Thanks for your contribution! I am no longer maintaining the 1.x branch. Because of how widely used it is and how little test coverage of that branch there is, I won't be making any more changes to the 1.x branch. Please upgrade to 2.x.