summaryrefslogtreecommitdiffstats
path: root/4ed264051ed407d59c2fde4128be176e96e8f22a.patch
blob: 0b6b0577316a2d0691ce97d2b9d4147cddc9b847 (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
Adapted for 0.9.0 from


From 4ed264051ed407d59c2fde4128be176e96e8f22a Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sun, 29 Oct 2017 12:54:24 +0000
Subject: [PATCH] Fix PHP 7.1 bug

---
 lib/Serialiser/GraphViz.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Serialiser/GraphViz.php b/lib/Serialiser/GraphViz.php
index db2ae15d..7c1d8a6b 100644
--- a/lib/EasyRdf/Serialiser/GraphViz.php
+++ b/lib/EasyRdf/Serialiser/GraphViz.php
@@ -220,7 +220,7 @@ protected function escape($input)
      */
     protected function escapeAttributes($array)
     {
-        $items = '';
+        $items = array();
         foreach ($array as $k => $v) {
             $items[] = $this->escape($k).'='.$this->escape($v);
         }