From b110f1e6cebf3e9e0a946ecb64ba2eebb085589f Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Mon, 13 Dec 2021 12:25:26 +0100 Subject: [PATCH] fix Symfony 4 compatibility (see issue #310) (#311) --- src/Application/Event/Dispatcher/EventDispatcher.php | 2 +- src/Presentation/Console/Style.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/Event/Dispatcher/EventDispatcher.php b/src/Application/Event/Dispatcher/EventDispatcher.php index 2353e2b8..e6558d03 100644 --- a/src/Application/Event/Dispatcher/EventDispatcher.php +++ b/src/Application/Event/Dispatcher/EventDispatcher.php @@ -75,7 +75,7 @@ public function __construct( /** * {@inheritDoc} */ - public function dispatch(object $event, string $eventName = null): object + public function dispatch($event, string $eventName = null): object { $triggered = false; foreach ($this->extensionLoader->getNames() as $extensionName) { diff --git a/src/Presentation/Console/Style.php b/src/Presentation/Console/Style.php index 89bafcd2..14e6c427 100644 --- a/src/Presentation/Console/Style.php +++ b/src/Presentation/Console/Style.php @@ -13,7 +13,7 @@ final class Style extends SymfonyStyle implements StyleInterface /** * {@inheritDoc} */ - public function createProgressBar(int $max = 0) + public function createProgressBar($max = 0) { $progressBar = parent::createProgressBar($max);