Skip to content

Commit

Permalink
return buffer on empty result
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 21, 2018
1 parent 49e8432 commit fe81084
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HeroTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function phpFatalErrorHandler($buffer): string
return $buffer;
}

if ($this->result === '') {
return $buffer;
}

return $this->result;
}

Expand Down

0 comments on commit fe81084

Please sign in to comment.