summaryrefslogtreecommitdiffstats
path: root/37.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-02-25 16:56:58 +0100
committerRemi Collet <remi@remirepo.net>2020-02-25 16:56:58 +0100
commit1e3ec07288735e4ff9af6c3132564cba38225fcb (patch)
treed9b87240ec7fd4ad0cdb61d8422df08ef56f3654 /37.patch
parentf84d244f85849f50ba132df5e279ec37e1c40c61 (diff)
fix compatibility with Symfony 4 using patch from https://github.com/llaville/php-reflect/pull/37
Diffstat (limited to '37.patch')
-rw-r--r--37.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/37.patch b/37.patch
new file mode 100644
index 0000000..f3d3927
--- /dev/null
+++ b/37.patch
@@ -0,0 +1,25 @@
+From a628d02885fa031c82fd820b536c5eddbbbdb96e Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 25 Feb 2020 16:46:46 +0100
+Subject: [PATCH] Fix #36 Fatal error: Uncaught TypeError
+
+---
+ src/Bartlett/Reflect/Console/Application.php | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Bartlett/Reflect/Console/Application.php b/src/Bartlett/Reflect/Console/Application.php
+index abbd088..b618197 100644
+--- a/src/Bartlett/Reflect/Console/Application.php
++++ b/src/Bartlett/Reflect/Console/Application.php
+@@ -223,9 +223,9 @@ public function run(InputInterface $input = null, OutputInterface $output = null
+ if (isset($url['scheme']) && $url['scheme'] == 'ftp') {
+ $options = array($url['scheme'] => array('overwrite' => true));
+ $context = stream_context_create($options);
+- $output = new StreamOutput(fopen($target, $mode, false, $context), null, false);
++ $output = new StreamOutput(fopen($target, $mode, false, $context), StreamOutput::VERBOSITY_NORMAL, false);
+ } else {
+- $output = new StreamOutput(fopen($target, $mode), null, false);
++ $output = new StreamOutput(fopen($target, $mode), StreamOutput::VERBOSITY_NORMAL, false);
+ }
+ }
+ $output->getFormatter()->setStyle('diagpass', new OutputFormatterStyle('green', null, ['reverse']));