Skip to content

Commit 0c0233f

Browse files
authored
Merge pull request #129 from richardhj/patch-1
Do not serialize scalar values
2 parents c3a88cd + 2e27835 commit 0c0233f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Entities/Properties/Property.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ public function asText(): string
115115
return '';
116116
}
117117

118+
if (is_scalar($this->content)) {
119+
return $this->content;
120+
}
121+
118122
return json_encode($this->content);
119123
}
120124

0 commit comments

Comments
 (0)