We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f5e4c7 commit 7a4fcd6Copy full SHA for 7a4fcd6
src/Tag/ListTag.php
@@ -22,6 +22,10 @@ public function writeContent(Writer $writer): static
22
{
23
$writer->getSerializer()->writeByte($this->contentTagType);
24
if ($this->isRaw()) {
25
+ if($this->rawContentFormat !== $writer->getFormat()) {
26
+ throw new Exception("Cannot change format of raw list tag");
27
+ }
28
+
29
$writer->getSerializer()->writeLengthPrefix($this->rawContentLength);
30
$writer->write($this->rawContent);
31
} else {
0 commit comments