Skip to content

Commit

Permalink
Make ResourceResponse compatible with new http-foundation response.
Browse files Browse the repository at this point in the history
  • Loading branch information
daedeloth committed Jun 22, 2023
1 parent adc3a7b commit 62a4aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/ResourceResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getResource()
*
* @return Response
*/
public function sendContent()
public function sendContent(): static
{
echo $this->getContent();
return $this;
Expand All @@ -76,7 +76,7 @@ public function sendContent()
/**
* @return false|string
*/
public function getContent()
public function getContent(): false|string
{
if (!isset($this->output)) {
$this->output = $this->encode();
Expand Down

0 comments on commit 62a4aac

Please sign in to comment.