Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 7ba7d1f

Browse files
lexidorjjergus
authored andcommitted
Add addReturnVoid method to HackBuilder (#123)
1 parent 68a05ad commit 7ba7d1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/HackBuilder.hack

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ final class HackBuilder extends BaseCodeBuilder {
175175
return
176176
$this->addReturn(\vsprintf($value, $args), HackBuilderValues::literal());
177177
}
178+
public function addReturnVoid(): this{
179+
return $this->addLine('return;');
180+
}
178181

179182
public function addAssignment<T>(
180183
string $var_name,

0 commit comments

Comments
 (0)