From 7d2d1c6cdc984b5c25ab6b3a40bd6614b17d0ef9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 4 Jul 2022 16:58:45 +0200 Subject: [vmstore/main] Use property list for results so they work cross-session --- inc/property.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/property.inc.php') 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, -- cgit v1.2.3-55-g7522