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()
2727 $ this ->assertSame ('en_GB ' , $ this ->call ('getDefault ' ));
2828 }
2929
30- abstract protected function call ($ methodName );
30+ /**
31+ * @param mixed ...$args
32+ *
33+ * @return mixed
34+ */
35+ abstract protected function call (string $ methodName , ...$ args );
3136}
Original file line number Diff line number Diff line change @@ -139,10 +139,8 @@ public function testSetDefaultAcceptsEn()
139139 $ this ->assertSame ('en ' , $ this ->call ('getDefault ' ));
140140 }
141141
142- protected function call ($ methodName )
142+ protected function call (string $ methodName, ... $ args )
143143 {
144- $ args = \array_slice (\func_get_args (), 1 );
145-
146144 return Locale::{$ methodName }(...$ args );
147145 }
148146}
Original file line number Diff line number Diff line change @@ -29,10 +29,8 @@ protected function setUp(): void
2929 parent ::setUp ();
3030 }
3131
32- protected function call ($ methodName )
32+ protected function call (string $ methodName, ... $ args )
3333 {
34- $ args = \array_slice (\func_get_args (), 1 );
35-
3634 return \Locale::{$ methodName }(...$ args );
3735 }
3836}
You can’t perform that action at this time.
0 commit comments