Commit a1a9d9a3 by Klimov Paul

Method `yii\authclient\BaseOAuth::mergeCurlOptions()` advanced to merge array values

parent fbce722d
...@@ -223,7 +223,11 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface ...@@ -223,7 +223,11 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface
while (!empty($args)) { while (!empty($args)) {
$next = array_shift($args); $next = array_shift($args);
foreach ($next as $k => $v) { 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;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment