Explorar o código

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

Daniele Alessandri %!s(int64=10) %!d(string=hai) anos
pai
achega
c577c20481
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             }