diff --git a/src/Plugin.php b/src/Plugin.php index 2dc896cf9f103019b345f43b2ce192582255d8fe..16b615d7cf6824e08ab3245e16f6b18dfe09c644 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -4,7 +4,6 @@ namespace LakeDrops\Docker4Drupal; use Composer\Script\Event; use Composer\Script\ScriptEvents; -use LakeDrops\Component\Composer\BaseHandlerInterface; use LakeDrops\Component\Composer\BasePlugin; /** @@ -15,7 +14,7 @@ class Plugin extends BasePlugin { /** * {@inheritdoc} */ - public function getHandlerClass(): BaseHandlerInterface { + public function getHandlerClass(): string { return Handler::class; } @@ -44,12 +43,8 @@ class Plugin extends BasePlugin { * * @param \Composer\Script\Event $event * The event that triggered the call of this function. - * - * @throws \Twig\Error\LoaderError - * @throws \Twig\Error\RuntimeError - * @throws \Twig\Error\SyntaxError */ - public function configureProject(Event $event) { + public function configureProject(Event $event): void { /** @var Handler $handler */ $handler = $this->handler; $handler diff --git a/src/UpdateCommand.php b/src/UpdateCommand.php index c5d0e94d096c9836f40ce3669255a7a75d200124..d31572dee704e87f1bd7204036f5d789d999634b 100644 --- a/src/UpdateCommand.php +++ b/src/UpdateCommand.php @@ -20,7 +20,7 @@ class UpdateCommand extends BaseCommand { /** * {@inheritdoc} */ - public function getHandlerClass(): BaseHandlerInterface { + public function getHandlerClass(): string { return Handler::class; }