Explorar el Código

修复Image字段使用Macro方法无法问题

jqh hace 5 años
padre
commit
ae04b911b7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Form/Field/ImageField.php

+ 1 - 1
src/Form/Field/ImageField.php

@@ -76,7 +76,7 @@ trait ImageField
     public function __call($method, $arguments)
     {
         if (static::hasMacro($method)) {
-            return $this;
+            return parent::__call($method, $arguments);
         }
 
         if (! class_exists(ImageManagerStatic::class)) {