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
This commit is contained in:
wn_
2024-03-26 16:38:05 +00:00
parent fea3089bde
commit de00a09538
9 changed files with 26 additions and 26 deletions

View File

@@ -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 = "";