Skip to content

Commit 72d5aa8

Browse files
committed
Use variadics instead of func_get_args()
1 parent 1e58f70 commit 72d5aa8

File tree

1 file changed

+1
-3
lines changed
  • lib/internal/Magento/Framework/Phrase

1 file changed

+1
-3
lines changed

lib/internal/Magento/Framework/Phrase/__.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
* @SuppressWarnings(PHPMD.ShortMethodName)
1111
* @return \Magento\Framework\Phrase
1212
*/
13-
function __()
13+
function __(...$argc)
1414
{
15-
$argc = func_get_args();
16-
1715
$text = array_shift($argc);
1816
if (!empty($argc) && is_array($argc[0])) {
1917
$argc = $argc[0];

0 commit comments

Comments
 (0)