Parcourir la source

Merge remote-tracking branch 'github/pr/258'

Daniele Alessandri il y a 9 ans
Parent
commit
c577c20481
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Configuration/Options.php

+ 1 - 1
src/Configuration/Options.php

@@ -100,7 +100,7 @@ class Options implements OptionsInterface
             $value = $this->input[$option];
             unset($this->input[$option]);
 
-            if (method_exists($value, '__invoke')) {
+            if (is_object($value) && method_exists($value, '__invoke')) {
                 $value = $value($this, $option);
             }