Skip to content

Commit

Permalink
Fix PHP deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnutix committed Apr 24, 2023
1 parent 52bec15 commit d8b2d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function body($body = null)
public function write($body, $replace = false)
{
if ($replace) {
$this->body = $body;
$this->body = (string)$body;
} else {
$this->body .= (string)$body;
}
Expand Down

0 comments on commit d8b2d90

Please sign in to comment.