From abcd0e8ba205aac8bd9006e99d783afc999af0af Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 23 Nov 2024 17:43:24 +0000 Subject: Use native union types in most places. --- classes/Labels.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Labels.php') diff --git a/classes/Labels.php b/classes/Labels.php index 026e6621f..01b5d86a9 100644 --- a/classes/Labels.php +++ b/classes/Labels.php @@ -197,7 +197,7 @@ class Labels /** * @return false|int false if the check for an existing label failed, otherwise the number of rows inserted (1 on success) */ - static function create(string $caption, ?string $fg_color = '', ?string $bg_color = '', ?int $owner_uid = null) { + static function create(string $caption, ?string $fg_color = '', ?string $bg_color = '', ?int $owner_uid = null): false|int { if (!$owner_uid) $owner_uid = $_SESSION['uid']; -- cgit v1.2.3-54-g00ecf