diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/property.inc.php | 6 |
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, |