Parcourir la source

fix null config

tags/1.0
0nepeop1e il y a 5 ans
Parent
révision
9f0b724e20
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/PaymentServiceProvider.php

+ 1
- 1
src/PaymentServiceProvider.php Voir le fichier

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

Chargement…
Annuler
Enregistrer