Skip to content

Commit f7f8123

Browse files
authored
Add patch to history if alias exists
1 parent 23648e4 commit f7f8123

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/Setup/Patch/PatchApplier.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\Setup\Patch;
89

@@ -309,9 +310,11 @@ private function applyPatch((PatchInterface $patch): void
309310
*/
310311
private function isApplied(PatchInterface $patch): bool
311312
{
312-
if (!$this->patchHistory->isApplied(get_class($patch))) {
313+
$patchIdentity = get_class($patch);
314+
if (!$this->patchHistory->isApplied($patchIdentity)) {
313315
foreach ($patch->getAliases() as $alias) {
314316
if ($this->patchHistory->isApplied($alias)) {
317+
$this->patchHistory->fixPatch($patchIdentity);
315318
return true;
316319
}
317320
}

0 commit comments

Comments
 (0)