From 9f6bef4d24b81127638d7296c4a087e010a02266 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 15 Apr 2013 22:48:49 -0600 Subject: [PATCH] $aEnd is an array, string expected for first argument to Exception constructor --- lib/Sabberworm/CSS/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sabberworm/CSS/Parser.php b/lib/Sabberworm/CSS/Parser.php index 40a92d54..98abb2b0 100644 --- a/lib/Sabberworm/CSS/Parser.php +++ b/lib/Sabberworm/CSS/Parser.php @@ -532,7 +532,7 @@ private function consumeUntil($aEnd, $bIncludeEnd = false) { } } if ($iEndPos === null) { - throw new UnexpectedTokenException($aEnd, $this->peek(5), 'search'); + throw new UnexpectedTokenException(print_r($aEnd, true), $this->peek(5), 'search'); } return $this->consume($iEndPos - $this->iCurrentPosition); }