* Add the type hint for the returned result.

This commit is contained in:
dingguodong
2023-12-19 15:54:28 +08:00
parent 657f19a8cd
commit 157f067100
+2 -2
View File
@@ -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';
}