Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/PhpEnvironment/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ class Response extends HttpResponse
*/
protected $version;

/**
* @var bool
*/
protected $headersSent = false;

/**
* @var bool
*/
Expand Down Expand Up @@ -73,11 +68,12 @@ protected function detectVersion()
*/
public function headersSent()
{
return $this->headersSent;
return headers_sent();
}

/**
* @return bool
* @deprecated
*/
public function contentSent()
{
Expand All @@ -88,6 +84,7 @@ public function contentSent()
* Send HTTP headers
*
* @return Response
* @deprecated
*/
public function sendHeaders()
{
Expand Down Expand Up @@ -115,6 +112,7 @@ public function sendHeaders()
* Send content
*
* @return Response
* @deprecated
*/
public function sendContent()
{
Expand All @@ -131,6 +129,7 @@ public function sendContent()
* Send HTTP response
*
* @return Response
* @deprecated
*/
public function send()
{
Expand Down

0 comments on commit 651bad3

Please sign in to comment.