summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch
blob: 298dc7011be7df0561138720a4950c200876240f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From b110f1e6cebf3e9e0a946ecb64ba2eebb085589f Mon Sep 17 00:00:00 2001
From: Laurent Laville <laurent.laville@gmail.com>
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);