We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 520854a commit 2e0b081Copy full SHA for 2e0b081
1 file changed
src/StrBuffer.php
@@ -49,11 +49,15 @@ public function prepend(string $content): void
49
}
50
51
/**
52
- * clear
+ * clear data
53
*/
54
- public function clear(): void
+ public function clear(): string
55
{
56
+ $string = $this->body;
57
+ // clear
58
$this->body = '';
59
+
60
+ return $string;
61
62
63
0 commit comments