From deb9b91352e469e17169876552a3ff01017b0bce Mon Sep 17 00:00:00 2001 From: Rajeshreeputra Date: Wed, 21 Feb 2024 15:03:43 +0530 Subject: [PATCH] Relock patches.lock.json on package install or update --- src/Plugin/Patches.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Plugin/Patches.php b/src/Plugin/Patches.php index 5b74ca1..6dc0108 100644 --- a/src/Plugin/Patches.php +++ b/src/Plugin/Patches.php @@ -320,6 +320,9 @@ public function patchPackage(PackageEvent $event) return; } + // Relock patches on package install/update. + $this->createNewPatchesLock(); + // If there aren't any patches, there's nothing to do. if (empty($this->patchCollection->getPatchesForPackage($package->getName()))) { $this->io->write(