Skip to content

Commit 9b04328

Browse files
mabarf3l1x
authored andcommitted
Allow symfony/console ^5.0.0
1 parent 8ad8584 commit 9b04328

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": "^7.2",
2020
"contributte/di": "^0.4.0",
21-
"symfony/console": "^4.2.9"
21+
"symfony/console": "^4.2.9|^5.0.0"
2222
},
2323
"require-dev": {
2424
"nette/http": "~3.0.1",

tests/fixtures/FooCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ protected function configure(): void
2020
$this->setName('foo');
2121
}
2222

23-
protected function execute(InputInterface $input, OutputInterface $output): void
23+
protected function execute(InputInterface $input, OutputInterface $output): int
2424
{
25-
// Some magic..
25+
return 0;
2626
}
2727

2828
}

tests/fixtures/HelperSetCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ protected function configure(): void
1717
$this->setName('helper-set');
1818
}
1919

20-
protected function execute(InputInterface $input, OutputInterface $output): void
20+
protected function execute(InputInterface $input, OutputInterface $output): int
2121
{
22-
// Some magic..
22+
return 0;
2323
}
2424

2525
}

tests/fixtures/ThrowingCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function configure(): void
2323
$this->setName(self::$defaultName);
2424
}
2525

26-
protected function execute(InputInterface $input, OutputInterface $output): void
26+
protected function execute(InputInterface $input, OutputInterface $output): int
2727
{
2828
throw new Exception(self::ERROR_MESSAGE);
2929
}

0 commit comments

Comments
 (0)