File tree 2 files changed +7
-12
lines changed 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,11 @@ final class Runtime
9
9
{
10
10
/**
11
11
* Output debug info.
12
- *
13
- * @param string $v expression
14
- * @param string $f runtime function name
15
12
*/
16
- public static function debug (string $ v , string $ f , RuntimeContext $ cx )
13
+ public static function debug (string $ expression , string $ runtimeFn , ... $ rest )
17
14
{
18
- // Build array of reference for call_user_func_array
19
- $ P = func_get_args ();
20
- $ params = [];
21
- for ($ i = 2 ; $ i < count ($ P ); $ i ++) {
22
- $ params [] = &$ P [$ i ];
23
- }
24
15
$ runtime = self ::class;
25
- return call_user_func_array ("$ runtime:: $ f " , $ params );
16
+ return call_user_func_array ("$ runtime:: $ runtimeFn " , $ rest );
26
17
}
27
18
28
19
/**
Original file line number Diff line number Diff line change @@ -126,7 +126,11 @@ public function testSpecs($spec)
126
126
($ spec ['description ' ] === 'blocks - decorators ' ) ||
127
127
128
128
// strict mode
129
- $ spec ['description ' ] === 'strict - strict mode ' ||
129
+ (
130
+ $ spec ['description ' ] === 'strict - strict mode ' && (
131
+ str_starts_with ($ spec ['it ' ], 'should allow undefined ' ) || $ spec ['it ' ] === 'should handle explicit undefined '
132
+ )
133
+ ) ||
130
134
$ spec ['description ' ] === 'strict - assume objects ' ||
131
135
132
136
// helper for raw block
You can’t perform that action at this time.
0 commit comments