Skip to content

Commit

Permalink
Added strict return types for Composer plugin extension points
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Nov 25, 2024
1 parent 294558a commit bd9a329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/CommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class CommandProvider implements \Composer\Plugin\Capability\CommandProvider
{
public function getCommands()
public function getCommands(): array
{
return [
new IbexaSetupCommand(),
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PostInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bd9a329

Please sign in to comment.