Skip to content

Commit c516361

Browse files
authored
ENGCOM-5623: Use variadics instead of func_get_args() #23372
2 parents 26c1b4f + bfdda6f commit c516361

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77

88
/**
99
* Create value-object \Magento\Framework\Phrase
10+
*
1011
* @SuppressWarnings(PHPMD.ShortMethodName)
12+
* phpcs:disable Squiz.Functions.GlobalFunction
13+
* @param array $argc
1114
* @return \Magento\Framework\Phrase
1215
*/
13-
function __()
16+
function __(...$argc)
1417
{
15-
$argc = func_get_args();
16-
1718
$text = array_shift($argc);
1819
if (!empty($argc) && is_array($argc[0])) {
1920
$argc = $argc[0];

0 commit comments

Comments
 (0)