Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Allow symfony 5 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaileu authored and theofidry committed Dec 7, 2019
1 parent 6cbd194 commit eaf3409
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ matrix:
- SYMFONY_VERSION='~4.3.0'
- php: '7.2'
env: SYMFONY_VERSION='~4.3.0'
- php: '7.2'
env: SYMFONY_VERSION='^5.0'
allow_failures:
- php: nightly

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"require": {
"php": "^7.1",
"psy/psysh": "^0.8 || ^0.9",
"symfony/expression-language": "^4.3",
"symfony/framework-bundle": "^4.3"
"symfony/debug": "^4.3|^4.4",
"symfony/expression-language": "^4.3|^5.0",
"symfony/framework-bundle": "^4.3|^5.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"symfony/symfony": "^4.3"
"symfony/symfony": "^4.3|^5.0"
},

"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/PsyshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->shell->run();
return $this->shell->run();
}
}
2 changes: 1 addition & 1 deletion tests/Command/PsyshCommandUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testConfiguration()
public function testExecute()
{
$shellProphecy = $this->prophesize(Shell::class);
$shellProphecy->run()->shouldBeCalled();
$shellProphecy->run()->shouldBeCalled()->willReturn(1);
/* @var Shell $shell */
$shell = $shellProphecy->reveal();

Expand Down

0 comments on commit eaf3409

Please sign in to comment.