Skip to content

Commit

Permalink
fix: 当自定义 gateway 没有传入参数时无法使用问题
Browse files Browse the repository at this point in the history
leo108 committed May 19, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 607333f commit 5d2ef01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Messenger.php
Original file line number Diff line number Diff line change
@@ -117,6 +117,7 @@ protected function formatGateways(array $gateways)
$setting = [];
}

$formatted[$gateway] = $setting;
$globalSetting = $config->get("gateways.{$gateway}", []);

if (is_string($gateway) && !empty($globalSetting) && is_array($setting)) {

0 comments on commit 5d2ef01

Please sign in to comment.