@@ -33,7 +33,7 @@ abstract class AbstractValidation implements ValidationInterface
3333 * @param array $rules
3434 * @param array $translates
3535 * @param string $scene
36- * @param bool $startValidate 立即开始验证
36+ * @param bool $startValidate Start verification now
3737 *
3838 * @throws InvalidArgumentException
3939 */
@@ -57,9 +57,9 @@ public function __construct(
5757 * @param string $scene
5858 * @param bool $startValidate
5959 *
60- * @return AbstractValidation
60+ * @return self
6161 */
62- public static function quick (array $ data , string $ scene = '' , bool $ startValidate = false ): AbstractValidation
62+ public static function quick (array $ data , string $ scene = '' , bool $ startValidate = false ): self
6363 {
6464 return new static ($ data , [], [], $ scene , $ startValidate );
6565 }
@@ -80,7 +80,7 @@ public static function make(
8080 array $ translates = [],
8181 string $ scene = '' ,
8282 bool $ startValidate = false
83- ) {
83+ ): self {
8484 return new static ($ data , $ rules , $ translates , $ scene , $ startValidate );
8585 }
8686
@@ -95,13 +95,13 @@ public static function make(
9595 * @return static
9696 * @throws InvalidArgumentException
9797 */
98- public static function makeAndValidate (array $ data , array $ rules = [], array $ translates = [], string $ scene = '' )
98+ public static function makeAndValidate (array $ data , array $ rules = [], array $ translates = [], string $ scene = '' ): self
9999 {
100100 return new static ($ data , $ rules , $ translates , $ scene , true );
101101 }
102102
103103 /**
104- * Create and start verification immediately
104+ * Create and start verification immediately. alias of makeAndValidate()
105105 *
106106 * @param array $data
107107 * @param array $rules
@@ -111,7 +111,7 @@ public static function makeAndValidate(array $data, array $rules = [], array $tr
111111 * @return static
112112 * @throws InvalidArgumentException
113113 */
114- public static function check (array $ data , array $ rules = [], array $ translates = [], string $ scene = '' )
114+ public static function check (array $ data , array $ rules = [], array $ translates = [], string $ scene = '' ): self
115115 {
116116 return new static ($ data , $ rules , $ translates , $ scene , true );
117117 }
0 commit comments