Skip to content

Commit

Permalink
Allow symfony/console ^5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar authored and f3l1x committed Jan 3, 2020
1 parent 8ad8584 commit 9b04328
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"require": {
"php": "^7.2",
"contributte/di": "^0.4.0",
"symfony/console": "^4.2.9"
"symfony/console": "^4.2.9|^5.0.0"
},
"require-dev": {
"nette/http": "~3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/FooCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ protected function configure(): void
$this->setName('foo');
}

protected function execute(InputInterface $input, OutputInterface $output): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
// Some magic..
return 0;
}

}
4 changes: 2 additions & 2 deletions tests/fixtures/HelperSetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ protected function configure(): void
$this->setName('helper-set');
}

protected function execute(InputInterface $input, OutputInterface $output): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
// Some magic..
return 0;
}

}
2 changes: 1 addition & 1 deletion tests/fixtures/ThrowingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function configure(): void
$this->setName(self::$defaultName);
}

protected function execute(InputInterface $input, OutputInterface $output): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
throw new Exception(self::ERROR_MESSAGE);
}
Expand Down

0 comments on commit 9b04328

Please sign in to comment.