Skip to content

Commit 9f6bef4

Browse files
committed
$aEnd is an array, string expected for first argument to Exception constructor
1 parent 9dee32a commit 9f6bef4

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)