Skip to content

Commit efc714a

Browse files
committed
Support latest versions of the HSL
1 parent bcaa42c commit efc714a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CodegenClassWithInterfaces.hack

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ trait CodegenClassWithInterfaces {
4444
public function addInterfaces(
4545
Traversable<CodegenImplementsInterface> $interfaces,
4646
): this {
47-
$this->interfaces = Vec\concat($this->interfaces, $interfaces);
47+
$this->interfaces = Vec\concat($this->interfaces, vec($interfaces));
4848
return $this;
4949
}
5050

src/CodegenClassish.hack

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ abstract class CodegenClassish implements ICodeBuilderRenderer {
214214
public function addProperties(Traversable<CodegenProperty> $vars): this {
215215
$this->vars = Vec\concat(
216216
$this->vars,
217-
$vars,
217+
vec($vars),
218218
);
219219
return $this;
220220
}

src/CodegenFile.hack

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ final class CodegenFile {
114114
}
115115

116116
public function addConstants(Traversable<CodegenConstant> $constants): this {
117-
$this->consts = Vec\concat($this->consts, $constants);
117+
$this->consts = Vec\concat($this->consts, vec($constants));
118118
return $this;
119119
}
120120

0 commit comments

Comments
 (0)