sprintf expects ...args instead of an array. fixes #4193

This commit is contained in:
Andreas Gohr 2024-02-09 18:47:48 +01:00
parent 1418a776f1
commit 2c978aed5a
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ trait PluginTrait
// check if all required fields are present
$msg = 'Extension %s does not provide a valid %s in %s';
foreach (array_keys($base) as $line) {
if (empty($raw[$line])) Logger::error(sprintf($msg, [$ext, $line, $file]));
if (empty($raw[$line])) Logger::error(sprintf($msg, $ext, $line, $file));
}
return array_merge($base, $raw);