Skip to content

Commit

Permalink
Support symfony 7.x for some components (#6357)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Dec 8, 2023
1 parent f440087 commit f5ad7f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Generator/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ public function configure()

/**
* Execute the console command.
*
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
$this->input = $input;
$this->output = $output;
Expand Down
2 changes: 1 addition & 1 deletion src/InfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function configure()
$this->setDescription('Dump the server info.')->addArgument('type', InputArgument::REQUIRED);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$type = $input->getArgument('type');
if (! $this->info->has($type)) {
Expand Down
2 changes: 1 addition & 1 deletion src/VendorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function configure()
->addOption('force', 'f', InputOption::VALUE_OPTIONAL, 'Overwrite any existing files', false);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->output = $output;
$this->force = $input->getOption('force') !== false;
Expand Down

0 comments on commit f5ad7f9

Please sign in to comment.