Skip to content

Commit

Permalink
Return int from execute
Browse files Browse the repository at this point in the history
Symfony console >=4.4 expects an int back
from the execute function or it will throw.
  • Loading branch information
blueo authored and chillu committed Oct 29, 2020
1 parent 913f2f6 commit 2d91abf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/VendorExposeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function execute(InputInterface $input, OutputInterface $output)
$modules = $this->getAllLibraries();
if (empty($modules)) {
$io->write("No modules to expose");
return;
return 0;
}

// Query first library for base destination
Expand All @@ -55,6 +55,8 @@ public function execute(InputInterface $input, OutputInterface $output)
// Success
$io->write("All modules updated!");
}

return 0;
}

/**
Expand Down

0 comments on commit 2d91abf

Please sign in to comment.