File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -27,5 +27,10 @@ public function testSetDefault()
27
27
$ this ->assertSame ('en_GB ' , $ this ->call ('getDefault ' ));
28
28
}
29
29
30
- abstract protected function call ($ methodName );
30
+ /**
31
+ * @param mixed ...$args
32
+ *
33
+ * @return mixed
34
+ */
35
+ abstract protected function call (string $ methodName , ...$ args );
31
36
}
Original file line number Diff line number Diff line change @@ -139,10 +139,8 @@ public function testSetDefaultAcceptsEn()
139
139
$ this ->assertSame ('en ' , $ this ->call ('getDefault ' ));
140
140
}
141
141
142
- protected function call ($ methodName )
142
+ protected function call (string $ methodName, ... $ args )
143
143
{
144
- $ args = \array_slice (\func_get_args (), 1 );
145
-
146
144
return Locale::{$ methodName }(...$ args );
147
145
}
148
146
}
Original file line number Diff line number Diff line change @@ -29,10 +29,8 @@ protected function setUp(): void
29
29
parent ::setUp ();
30
30
}
31
31
32
- protected function call ($ methodName )
32
+ protected function call (string $ methodName, ... $ args )
33
33
{
34
- $ args = \array_slice (\func_get_args (), 1 );
35
-
36
34
return \Locale::{$ methodName }(...$ args );
37
35
}
38
36
}
You can’t perform that action at this time.
0 commit comments