File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33
33
"type" : " library" ,
34
34
"require-dev" : {
35
35
"hhvm/hacktest" : " ^2.0" ,
36
- "hhvm/type-assert" : " ^3.1" ,
36
+ "hhvm/type-assert" : " ^3.1|^4.0 " ,
37
37
"facebook/fbexpect" : " ^2.6.1" ,
38
38
"hhvm/hhast" : " ^4.0" ,
39
39
"facebook/difflib" : " ^1.0"
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ abstract class BaseCodeBuilder {
124
124
*
125
125
* This is unsafe. Use `addf` instead if you have a literal format string.
126
126
*/
127
- final protected function addvf (string $code , array <mixed > $args ): this {
127
+ final protected function addvf (string $code , varray <mixed > $args ): this {
128
128
if ($code === null ) {
129
129
return $this ;
130
130
}
@@ -190,7 +190,7 @@ abstract class BaseCodeBuilder {
190
190
* insert a newline. */
191
191
final protected function addLineImplvf (
192
192
?string $code ,
193
- array <mixed > $args ,
193
+ varray <mixed > $args ,
194
194
): this {
195
195
return $this -> addvf((string )$code , $args )-> newLine();
196
196
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ abstract final class HackBuilderValues {
51
51
/* * Render a `vec`-like PHP array literal */
52
52
public static function valueArray <Tv >(
53
53
IHackBuilderValueRenderer <Tv > $vr ,
54
- ): IHackBuilderValueRenderer <array <Tv >> {
54
+ ): IHackBuilderValueRenderer <varray <Tv >> {
55
55
return new _Private \HackBuilderNativeValueCollectionRenderer (
56
56
ContainerType :: PHP_ARRAY ,
57
57
$vr ,
@@ -62,7 +62,7 @@ abstract final class HackBuilderValues {
62
62
public static function keyValueArray <Tk as arraykey , Tv >(
63
63
IHackBuilderKeyRenderer <Tk > $kr ,
64
64
IHackBuilderValueRenderer <Tv > $vr ,
65
- ): IHackBuilderValueRenderer <array <Tk , Tv >> {
65
+ ): IHackBuilderValueRenderer <darray <Tk , Tv >> {
66
66
return new _Private \HackBuilderNativeKeyValueCollectionRenderer (
67
67
ContainerType :: PHP_ARRAY ,
68
68
$kr ,
You can’t perform that action at this time.
0 commit comments