jqh 5 years ago
parent
commit
b2ac901d91
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Form/Field.php

+ 2 - 2
src/Form/Field.php

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