summaryrefslogtreecommitdiffstats
path: root/79.patch
blob: aba4b162143e0d2ba7dd2bced586b7d76b91a7cb (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 c310b2920e0278e017df821144d27fd297980a73 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 24 Oct 2017 12:19:45 +0200
Subject: [PATCH] Fix #76 incompatible prototype

---
 src/Writer/FingersCrossed.php | 2 +-
 src/Writer/MongoDB.php        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Writer/FingersCrossed.php b/src/Writer/FingersCrossed.php
index bfc9b863..b4abd971 100644
--- a/src/Writer/FingersCrossed.php
+++ b/src/Writer/FingersCrossed.php
@@ -245,7 +245,7 @@ public function reset()
      * @param string|FormatterInterface $formatter
      * @return WriterInterface
      */
-    public function setFormatter($formatter)
+    public function setFormatter($formatter, array $options = null)
     {
         return $this->writer;
     }
diff --git a/src/Writer/MongoDB.php b/src/Writer/MongoDB.php
index 38157674..1ef4f23f 100644
--- a/src/Writer/MongoDB.php
+++ b/src/Writer/MongoDB.php
@@ -104,7 +104,7 @@ public function __construct($manager, $database = null, $collection = null, $wri
      * @param string|FormatterInterface $formatter
      * @return WriterInterface
      */
-    public function setFormatter($formatter)
+    public function setFormatter($formatter, array $options = null)
     {
         return $this;
     }