diff --git a/Collector/ProducerCollector.php b/Collector/ProducerCollector.php index 3c05275..509f7bb 100644 --- a/Collector/ProducerCollector.php +++ b/Collector/ProducerCollector.php @@ -26,7 +26,7 @@ public function __construct() * @param Response $response A Response instance * @param \Exception $exception An Exception instance */ - public function collect(Request $request, Response $response, \Exception $exception = null) + public function collect(Request $request, Response $response, \Throwable $exception = null) { // We don't collect anything from the request data } diff --git a/Command/DebugCommand.php b/Command/DebugCommand.php index 581b7bb..c549679 100644 --- a/Command/DebugCommand.php +++ b/Command/DebugCommand.php @@ -3,7 +3,7 @@ namespace Bernard\BernardBundle\Command; use Bernard\Router; -use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; +use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -11,7 +11,7 @@ /** * @final since 2.1 */ -class DebugCommand extends ContainerAwareCommand +class DebugCommand extends Command { /** * @var Router diff --git a/composer.json b/composer.json index 44cfa2e..dd821db 100644 --- a/composer.json +++ b/composer.json @@ -13,9 +13,9 @@ }, "require" : { - "php": "^5.6|^7.0", + "php": "^5.6|^7.0|^8.0", "bernard/bernard": "1.0.0-alpha9", - "symfony/framework-bundle": "^2.8|^3.2|^4.0|^5.0" + "symfony/framework-bundle": "^2.8|^3.2|^4.0|^5.0|^6.0" }, "require-dev" : {