From 88f1e8812e4151d4fe7f27c14e18fd1471c2d59b Mon Sep 17 00:00:00 2001 From: lacun Date: Thu, 27 Jul 2017 17:22:11 +0200 Subject: [PATCH] Multiple packages use the same patch throw an array to string exception - Completes fix from https://github.com/cweagans/composer-patches/issues/38 --- src/Patches.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Patches.php b/src/Patches.php index bb6859be..d499470b 100644 --- a/src/Patches.php +++ b/src/Patches.php @@ -182,7 +182,7 @@ public function gatherPatches(PackageEvent $event) { // Merge installed patches from dependencies that did not receive an update. foreach ($this->installedPatches as $patches) { - $this->patches = array_merge_recursive($this->patches, $patches); + $this->patches = $this->arrayMergeRecursiveDistinct($this->patches, $patches); } // If we're in verbose mode, list the projects we're going to patch.