summaryrefslogtreecommitdiff
path: root/include/controls.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-03-26 16:38:05 +0000
committerwn_ <invalid@email.com>2024-03-26 16:43:39 +0000
commitde00a095387499cdb5c8eb9c0ab721d67bd0b3fa (patch)
treed64d45215fa331dca8c489e9b9fbbc9e04cb5eda /include/controls.php
parentfea3089bde5b4abfdcc8b5a0314a7f82fcf25bea (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 'include/controls.php')
-rwxr-xr-xinclude/controls.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/controls.php b/include/controls.php
index 2fa797dbc..b2e71d174 100755
--- a/include/controls.php
+++ b/include/controls.php
@@ -155,8 +155,8 @@
/**
* @param array<string, mixed> $attributes
*/
- function select_feeds_cats(string $name, int $default_id = null, array $attributes = [],
- bool $include_all_cats = true, string $root_id = null, int $nest_level = 0, string $id = ""): string {
+ function select_feeds_cats(string $name, ?int $default_id = null, array $attributes = [],
+ bool $include_all_cats = true, ?string $root_id = null, int $nest_level = 0, string $id = ""): string {
$ret = "";