Skip to content

Commit e42537f

Browse files
committed
Fixed Argument #1 ($text) must be of type string, null given error
1 parent ca867f7 commit e42537f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/ResponseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function send()
370370
if ($this->CSP->enabled()) {
371371
$this->CSP->finalize($this);
372372
} else {
373-
$this->body = $this->CSP->clearNoncePlaceholders($this->body);
373+
$this->body = $this->CSP->clearNoncePlaceholders($this->body ?? '');
374374
}
375375

376376
$this->sendHeaders();

0 commit comments

Comments
 (0)