Skip to content

Commit fe81084

Browse files
committed
return buffer on empty result
1 parent 49e8432 commit fe81084

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/HeroTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function phpFatalErrorHandler($buffer): string
3333
return $buffer;
3434
}
3535

36+
if ($this->result === '') {
37+
return $buffer;
38+
}
39+
3640
return $this->result;
3741
}
3842

0 commit comments

Comments
 (0)