Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Commands/SparkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class SparkCommand extends Command
{
protected function configure()
protected function configure(): int
{
$this
->setName('spark')
Expand All @@ -35,9 +35,11 @@ protected function configure()
InputArgument::OPTIONAL,
'Your prime number'
);

return 1; // method requires an integer return value
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$bitLength = $input->getOption('bits');

Expand Down