Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 5a6d348

Browse files
konetchygreg0ire
authored andcommitted
Change void return declarations commands to be integer returns
Calling these commands would throw a FatalErrorException: Compile Error: A void function must not return a value Since symfony commands require a proper exit code to be returned this should be an integer return type
1 parent c0ee583 commit 5a6d348

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Command/CacheFlushAllCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function configure(): void
3333
);
3434
}
3535

36-
public function execute(InputInterface $input, OutputInterface $output): void
36+
public function execute(InputInterface $input, OutputInterface $output): int
3737
{
3838
$output->writeln('<info>Clearing cache information.</info>');
3939

src/Command/CacheFlushCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function configure(): void
4242
/**
4343
* @throws \RuntimeException
4444
*/
45-
public function execute(InputInterface $input, OutputInterface $output): void
45+
public function execute(InputInterface $input, OutputInterface $output): int
4646
{
4747
$keys = @json_decode($input->getOption('keys'), true);
4848

0 commit comments

Comments
 (0)