diff --git a/.travis.yml b/.travis.yml index bd728a8..f54d436 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,19 @@ language: php php: - 7.2 -before_script: +env: + matrix: + - SYMFONY_VERSION="~4.4" + - SYMFONY_VERSION="~5.0" + +before_install: - wget http://getcomposer.org/composer.phar - - php composer.phar install + - php composer.phar require "symfony/console:${SYMFONY_VERSION}" --no-update + - php composer.phar require "symfony/framework-bundle:${SYMFONY_VERSION}" --no-update + - php composer.phar require "symfony/yaml:${SYMFONY_VERSION}" --no-update + +install: + - php composer.phar update --prefer-source --no-interaction script: - vendor/bin/phpunit tests/ diff --git a/composer.json b/composer.json index 16dadaa..7016bac 100644 --- a/composer.json +++ b/composer.json @@ -12,13 +12,13 @@ "php" : ">=7.2", "ext-pcntl" : "*", "psr/event-dispatcher": "^1.0", - "symfony/console" : "~4.3", - "symfony/framework-bundle" : "~4.3", - "symfony/yaml": "~4.3", + "symfony/console" : "~4.4 || ~5.0", + "symfony/framework-bundle" : "~4.4 || ~5.0", + "symfony/yaml": "~4.4 || ~5.0", "react/event-loop": "@stable" }, "require-dev" : { - "sensiolabs/security-checker": "^5.0", + "sensiolabs/security-checker": "^6.0", "phpunit/phpunit": "^8.4" }, "autoload" : { @@ -28,7 +28,7 @@ } }, "conflict": { - "symfony/event-dispatcher": "<4.3" + "symfony/event-dispatcher": "<4.4" }, "extra": { "branch-alias": { diff --git a/src/Command/DaemonCommand.php b/src/Command/DaemonCommand.php index 9b8ad89..ed92c68 100644 --- a/src/Command/DaemonCommand.php +++ b/src/Command/DaemonCommand.php @@ -256,7 +256,7 @@ protected function loop(InputInterface $input, OutputInterface $output): void $this->dispatchEvent(DaemonLoopExceptionGeneralEvent::class); if ($this->getShowExceptions()) { - $this->getApplication()->renderException($e, $output); + $this->getApplication()->renderThrowable($e, $output); } if ($this->getShutdownOnException()) {