summaryrefslogtreecommitdiffstats
path: root/inc/property.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-07-04 16:58:45 +0200
committerSimon Rettberg2022-07-04 16:58:45 +0200
commit7d2d1c6cdc984b5c25ab6b3a40bd6614b17d0ef9 (patch)
treebd681df91c273ea44bbbc8ab059e0633ca8db346 /inc/property.inc.php
parent[rebootcontrol/main] Add subkey column to property_list table (diff)
downloadslx-admin-7d2d1c6cdc984b5c25ab6b3a40bd6614b17d0ef9.tar.gz
slx-admin-7d2d1c6cdc984b5c25ab6b3a40bd6614b17d0ef9.tar.xz
slx-admin-7d2d1c6cdc984b5c25ab6b3a40bd6614b17d0ef9.zip
[vmstore/main] Use property list for results so they work cross-session
Diffstat (limited to 'inc/property.inc.php')
-rw-r--r--inc/property.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/property.inc.php b/inc/property.inc.php
index 734c559e..e17473f6 100644
--- a/inc/property.inc.php
+++ b/inc/property.inc.php
@@ -118,12 +118,12 @@ class Property
* @param string $key key of list
* @param int $subkey subkey of entry in list
* @param string $value new value to set entry to
- * @param string|null $expectedValue if not null, the value will only be updated if it currently has this value
* @param int $maxAgeMinutes the new lifetime of that entry
+ * @param ?string $expectedValue if not null, the value will only be updated if it currently has this value
* @return bool whether the entry existed and has been updated
*/
- public static function updateListEntry(string $key, int $subkey, string $value, string $expectedValue = null,
- int $maxAgeMinutes = 0): bool
+ public static function updateListEntry(string $key, int $subkey, string $value,
+ int $maxAgeMinutes = 0, string $expectedValue = null): bool
{
$args = [
'name' => $key,