summaryrefslogtreecommitdiff
path: root/classes/Labels.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-24 06:36:58 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-11-24 06:36:58 +0000
commit7892b412348c03f2b6733a326776a47d980fd7f6 (patch)
tree8635fcd5b239f18db5ff831c7ef21a290a8ac6d8 /classes/Labels.php
parentd4636716fb6e1879098823c2f037db5d8d3f24a0 (diff)
parentabcd0e8ba205aac8bd9006e99d783afc999af0af (diff)
Merge branch 'feature/php8-union-types' into 'master'
Use native union types in most places. See merge request tt-rss/tt-rss!80
Diffstat (limited to 'classes/Labels.php')
-rw-r--r--classes/Labels.php2
1 files changed, 1 insertions, 1 deletions
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'];