From bd9a329db25290574a4b8c05833e5974b038509c Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Mon, 25 Nov 2024 12:13:57 +0100 Subject: [PATCH] Added strict return types for Composer plugin extension points --- src/lib/CommandProvider.php | 2 +- src/lib/PostInstall.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/CommandProvider.php b/src/lib/CommandProvider.php index 3f9dc6a..1bcfe6e 100644 --- a/src/lib/CommandProvider.php +++ b/src/lib/CommandProvider.php @@ -12,7 +12,7 @@ class CommandProvider implements \Composer\Plugin\Capability\CommandProvider { - public function getCommands() + public function getCommands(): array { return [ new IbexaSetupCommand(), diff --git a/src/lib/PostInstall.php b/src/lib/PostInstall.php index 1c93b2c..f1e82ec 100644 --- a/src/lib/PostInstall.php +++ b/src/lib/PostInstall.php @@ -32,7 +32,7 @@ public function uninstall(Composer $composer, IOInterface $io): void $io->write('[Ibexa PostInstall tool] Uninstall', true, IOInterface::DEBUG); } - public function getCapabilities() + public function getCapabilities(): array { return [ CommandProvider::class => SetupToolCommandProvider::class,