jqh 5 년 전
부모
커밋
b2ac901d91
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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) {