diff --git a/src/Plugin.php b/src/Plugin.php index 1a5048d..3ca8220 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -70,6 +70,10 @@ public static function getSubscribedEvents() */ public function onPreAutoloadDump() { + if (!class_exists(IncludeFile::class)) { + // Plugin package was removed + return; + } $includeFilePath = $this->composer->getConfig()->get('vendor-dir') . self::INCLUDE_FILE; $includeFile = new IncludeFile($this->config, $includeFilePath); if ($includeFile->dump()) {