瀏覽代碼

fix null config

tags/1.0
0nepeop1e 4 年之前
父節點
當前提交
9f0b724e20
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/PaymentServiceProvider.php

+ 1
- 1
src/PaymentServiceProvider.php 查看文件

@@ -25,7 +25,7 @@ class PaymentServiceProvider extends ServiceProvider
25 25
         /** @noinspection PhpIncludeInspection */
26 26
         $config->set('payment', array_merge(
27 27
             require $config_path,
28
-            $config->get('payment')
28
+            $config->get('payment', [])
29 29
         ));
30 30
 
31 31
         $this->app->singleton('payment', function (Application $app) use ($config) {

Loading…
取消
儲存