mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-01 06:59:29 +08:00
Method yii\authclient\BaseOAuth::mergeCurlOptions() advanced to merge array values
This commit is contained in:
@@ -223,7 +223,11 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface
|
||||
while (!empty($args)) {
|
||||
$next = array_shift($args);
|
||||
foreach ($next as $k => $v) {
|
||||
$res[$k] = $v;
|
||||
if (is_array($v) && !empty($res[$k]) && is_array($res[$k])) {
|
||||
$res[$k] = array_merge($res[$k], $v);
|
||||
} else {
|
||||
$res[$k] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user