diff options
| author | wn_ <invalid@email.com> | 2024-03-26 16:38:05 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-03-26 16:43:39 +0000 |
| commit | de00a095387499cdb5c8eb9c0ab721d67bd0b3fa (patch) | |
| tree | d64d45215fa331dca8c489e9b9fbbc9e04cb5eda /classes/Feeds.php | |
| parent | fea3089bde5b4abfdcc8b5a0314a7f82fcf25bea (diff) | |
Make implicit nullable parameters explicitly nullable.
This is to address a deprecation planned for PHP 8.4.
https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Diffstat (limited to 'classes/Feeds.php')
| -rw-r--r-- | classes/Feeds.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Feeds.php b/classes/Feeds.php index 88128cc48..4d4ca3240 100644 --- a/classes/Feeds.php +++ b/classes/Feeds.php @@ -2127,7 +2127,7 @@ class Feeds extends Handler_Protected { $cat->delete(); } - static function _add_cat(string $title, int $owner_uid, int $parent_cat = null, int $order_id = 0): bool { + static function _add_cat(string $title, int $owner_uid, ?int $parent_cat = null, int $order_id = 0): bool { $cat = ORM::for_table('ttrss_feed_categories') ->where('owner_uid', $owner_uid) |