From 2221c5ed12f3b9dbd6e7e710cc2159453da2d958 Mon Sep 17 00:00:00 2001 From: dedulay Date: Thu, 31 Dec 2015 10:52:57 +0300 Subject: [PATCH] Refactor code PHPExcel/Helper/HTML.php:769:Parse error - syntax error, unexpected '[', expecting ')' --- Classes/PHPExcel/Helper/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Helper/HTML.php b/Classes/PHPExcel/Helper/HTML.php index 1e41e06..a78f11c 100644 --- a/Classes/PHPExcel/Helper/HTML.php +++ b/Classes/PHPExcel/Helper/HTML.php @@ -766,7 +766,7 @@ class PHPExcel_Helper_HTML $domText = preg_replace( '/\s+/u', ' ', - str_replace(["\r", "\n"], ' ', $textNode->nodeValue) + str_replace(array("\r", "\n"), ' ', $textNode->nodeValue) ); $this->stringData .= $domText; $this->buildTextRun();