From 157f067100f273a992ee97f9d0dc5874b1cec3c2 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 19 Dec 2023 15:53:57 +0800 Subject: [PATCH] * Add the type hint for the returned result. --- framework/base/router.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 8587962963..342e206845 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -3285,7 +3285,7 @@ class baseRouter * @access public * @return bool */ - public function canAutoUpgrade() + public function canAutoUpgrade(): bool { return strtolower(getenv('ZT_AUTO_UPGRADE')) == 'true'; } @@ -3296,7 +3296,7 @@ class baseRouter * @access public * @return bool */ - public function hasValidSafeFile() + public function hasValidSafeFile(): bool { return strtolower(getenv('ZT_CHECK_SAFE_FILE')) == 'true'; }