Skip to content

Commit 35b25c3

Browse files
authored
fix(view): handle falsy values
1 parent eed3a45 commit 35b25c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/view/src/Slot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(
2222
}
2323

2424
public string $content {
25-
get => base64_decode($this->content, strict: true) ?: '';
25+
get => ($d = base64_decode($this->content, strict: true)) === false ? '' : $d;
2626
}
2727

2828
public ImmutableArray $exportData {

0 commit comments

Comments
 (0)