summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-01-03 08:08:08 +0100
committerRemi Collet <remi@php.net>2022-01-03 08:08:08 +0100
commit3766f476a7a80dea5d8b414e7a594820cc81fb20 (patch)
treebbcf322d43f0315bba6a3fc852f4ba2cae6e68c8 /php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch
parent97aa42b5b9fe84bf90112d64b8e2d34139e4e656 (diff)
update to 6.0.2unbundled
open https://github.com/llaville/php-compatinfo/issues/316 regression, compatibility with Symfony 4
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);
+