* Add unit test for updateMemorySize.

This commit is contained in:
sunguangming
2023-12-27 13:11:56 +08:00
parent ae87e61f2d
commit 38b166047d
2 changed files with 28 additions and 1 deletions
+2 -1
View File
@@ -255,6 +255,7 @@ class instanceModel extends model
}
/**
* 更新应用的内存大小。
* Update instance memory size.
*
* @param object $instnace
@@ -262,7 +263,7 @@ class instanceModel extends model
* @access public
* @return bool
*/
public function updateMemorySize($instnace, $size = '')
public function updateMemorySize(object $instnace, int $size = 0): bool
{
$settings = new stdclass;
$settings->settings_map = new stdclass;