summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch')
-rw-r--r--php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch b/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch
new file mode 100644
index 0000000..298dc70
--- /dev/null
+++ b/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch
@@ -0,0 +1,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);
+