Explorar o código

调整实体返回类型

sunxbiao hai 6 meses
pai
achega
e8b391631c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/entity/CommonEntity.php

+ 2 - 2
app/entity/CommonEntity.php

@@ -10,9 +10,9 @@ class CommonEntity
10 10
     /**
11 11
      * 将 参数 实例化到 实体
12 12
      * @param array $data
13
-     * @return CommonEntity
13
+     * @return static|self
14 14
      */
15
-    public static function newInstance(array $data = []): CommonEntity
15
+    public static function newInstance(array $data = []): self
16 16
     {
17 17
         if (empty($data)) {
18 18
             return new static();