瀏覽代碼

修复:模型基类deleteAll方法报错

Yahoo 4 年之前
父節點
當前提交
02929d18b7
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      cores/BaseModel.php

+ 2 - 2
cores/BaseModel.php

@@ -213,9 +213,9 @@ abstract class BaseModel extends Model
      *           ['store_user_id', '=', $storeUserId],
      *           ['role_id', 'in', $deleteRoleIds]
      *        ]
-     * @return bool
+     * @return bool|int
      */
-    public static function deleteAll(array $where): bool
+    public static function deleteAll(array $where)
     {
         return (new static)->where($where)->delete();
     }