From f62332f2657df2795a8e3f0123f09bd3fb27242a Mon Sep 17 00:00:00 2001 From: Luke Rodgers Date: Mon, 10 Jul 2023 18:17:39 +0100 Subject: [PATCH] Update ClassPluginPhp.php (fix #103) See https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/issues/103#issue-1796759590 --- src/Ampersand/PatchHelper/Checks/ClassPluginPhp.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ampersand/PatchHelper/Checks/ClassPluginPhp.php b/src/Ampersand/PatchHelper/Checks/ClassPluginPhp.php index a8cc3d4b..e0519984 100644 --- a/src/Ampersand/PatchHelper/Checks/ClassPluginPhp.php +++ b/src/Ampersand/PatchHelper/Checks/ClassPluginPhp.php @@ -72,6 +72,9 @@ public function check() if (isset($pluginConf['disabled']) && $pluginConf['disabled']) { continue; } + if (!isset($pluginConf['instance'])) { + continue; + } $pluginClass = $pluginConf['instance']; $pluginClass = ltrim($pluginClass, '\\');