Skip to content

Commit ee5073f

Browse files
committed
Don’t use print_r
It sometimes conflicts with output buffering
1 parent 2a2cb88 commit ee5073f

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
@@ -542,7 +542,7 @@ private function consumeUntil($aEnd, $bIncludeEnd = false) {
542542
}
543543
}
544544
if ($iEndPos === null) {
545-
throw new UnexpectedTokenException(print_r($aEnd, true), $this->peek(5), 'search');
545+
throw new UnexpectedTokenException('One of ("'.implode('","', $aEnd).'")', $this->peek(5), 'search');
546546
}
547547
return $this->consume($iEndPos - $this->iCurrentPosition);
548548
}

0 commit comments

Comments
 (0)