From e80dbdc6ea2b2f55685c4a6b9de65aa069a82387 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 30 Nov 2023 10:33:27 +0800 Subject: [PATCH] * Refactor common::canModify. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index e1e40a6478..9eb94e26f4 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1684,7 +1684,7 @@ class commonModel extends model * @access public * @return bool */ - public static function canModify($type, $object) + public static function canModify(string $type, object $object): bool { global $config;