Skip to content

Commit

Permalink
using call_user_func for php 5.6 support
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Aug 11, 2020
1 parent 397b17e commit 6f2196b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpEnvironment/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function sendHeaders()
{
if ($this->headersSent()) {
if ($this->headersSentHandler) {
($this->headersSentHandler)($this);
call_user_func($this->headersSentHandler, $this);
}

return $this;
Expand Down

0 comments on commit 6f2196b

Please sign in to comment.