jqh 5 anos atrás
pai
commit
b2ac901d91
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/Form/Field.php

+ 2 - 2
src/Form/Field.php

@@ -569,7 +569,7 @@ class Field implements Renderable
      *
      * @param $default
      *
-     * @return $this
+     * @return $this|mixed
      */
     public function default($default = null)
     {
@@ -579,7 +579,7 @@ class Field implements Renderable
                 && method_exists($this->form, 'isCreating')
                 && ! $this->form->isCreating()
             ) {
-                return null;
+                return;
             }
 
             if ($this->default instanceof \Closure) {