Adapted for 0.9.0 from From 4ed264051ed407d59c2fde4128be176e96e8f22a Mon Sep 17 00:00:00 2001 From: Alex Pott 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); }