From cc48335acc17aed70d50e6941113b90bff0be4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=BCndig?= Date: Fri, 10 Apr 2020 08:50:58 +0200 Subject: [PATCH] Added namespace to installer start event check --- src/MergePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MergePlugin.php b/src/MergePlugin.php index d337034..af227ed 100644 --- a/src/MergePlugin.php +++ b/src/MergePlugin.php @@ -151,7 +151,7 @@ public function uninstall(Composer $composer, IOInterface $io) */ public static function getSubscribedEvents() { - if (defined('InstallerEvents::PRE_OPERATIONS_EXEC')) { + if (defined('\Composer\Installer\InstallerEvents::PRE_OPERATIONS_EXEC')) { // composer-plugin-api ^2.0 $installerStartEvent = InstallerEvents::PRE_OPERATIONS_EXEC; } else {