Skip to content

Commit 76ca005

Browse files
committed
Merge pull request #63 from slusarz/exception_issue
Fix for error when throwing exception $aEnd is an array, string expected for first argument to Exception const...
2 parents 9dee32a + 9f6bef4 commit 76ca005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ private function consumeUntil($aEnd, $bIncludeEnd = false) {
532532
}
533533
}
534534
if ($iEndPos === null) {
535-
throw new UnexpectedTokenException($aEnd, $this->peek(5), 'search');
535+
throw new UnexpectedTokenException(print_r($aEnd, true), $this->peek(5), 'search');
536536
}
537537
return $this->consume($iEndPos - $this->iCurrentPosition);
538538
}

0 commit comments

Comments
 (0)