Skip to content

Commit

Permalink
! Fixed return types
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaselkowski committed Jun 16, 2023
1 parent 533a2e2 commit a9eb0a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/Application/Commands/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class BuildCommand extends ConsoleCommand implements AnnotatedInterface
{

protected function configure()
protected function configure(): void
{
$this->setName("build");
$this->setDescription("Build signals list");
Expand All @@ -46,7 +46,7 @@ protected function configure()
$this->setHelp($help);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$signal = new Signal();

Expand All @@ -58,13 +58,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

(new Utility($signal))->generate();
return 1;
}

/**
* @SlotFor(Command)
* @param Command $signal
*/
public function reactOn(Command $signal)
public function reactOn(Command $signal): void
{
$signal->add($this, 'signals');
}
Expand Down
6 changes: 3 additions & 3 deletions src/Application/Commands/PreviewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
class PreviewCommand extends ConsoleCommand implements AnnotatedInterface
{

protected function configure()
protected function configure(): void
{
$this->setName("preview");
$this->setDescription("Show list of signals and slots");
Expand All @@ -52,7 +52,7 @@ protected function configure()
$this->setHelp($help);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$preview = new Preview();
$signal = new Signal;
Expand Down Expand Up @@ -92,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
* @SlotFor(Command)
* @param Command $signal
*/
public function reactOn(Command $signal)
public function reactOn(Command $signal): void
{
$signal->add($this, 'signals');
}
Expand Down

0 comments on commit a9eb0a8

Please sign in to comment.