Skip to content

Commit

Permalink
Add return type hint to doRun method
Browse files Browse the repository at this point in the history
This change adds an integer return type hint to the doRun method in the Application class. This ensures the declaration is compatible with the symfony console input interface.
  • Loading branch information
rpflamm authored and eliashaeussler committed Nov 13, 2024
1 parent 1ef1dd7 commit cfad629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function getDefaultInputDefinition(): Console\Input\InputDefinition
return $inputDefinition;
}

public function doRun(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function doRun(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->input = $input;

Expand Down

0 comments on commit cfad629

Please sign in to comment.