#93346LocalizationUtility::translate throws uncaught exception, if the arguments contains an empty array
Description
$kye = "hallo %s",
$param=[];
sprintf($kye, ...array_values($param));
The code above throws an exception. This exception is uncaught in LocalizationUtility::translate.
I use something like this often. A meaningful exception woul be nice.
$argList = [];
$webTitle = LocalizationUtility::translate(
$item['title'],
'myExtension',
$argList
);
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.