1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/17496] Fix Implicitly marking parameters as nullable PHP deprecations

Also use union types consistently instead of question marks.
Fixed with php-cs-fixer.

PHPBB-17496
This commit is contained in:
rxu
2025-04-15 12:14:21 +07:00
parent bdbd0be548
commit 7d1ae5bf19
64 changed files with 113 additions and 113 deletions

View File

@@ -28,7 +28,7 @@ class email extends base
/**
* {@inheritDoc}
*/
public function get_user_column(): ?string
public function get_user_column(): string|null
{
return 'user_email';
}

View File

@@ -31,7 +31,7 @@ class ip extends base
/**
* @inheritDoc
*/
public function get_user_column(): ?string
public function get_user_column(): string|null
{
return null;
}

View File

@@ -33,7 +33,7 @@ interface type_interface
*
* @return string|null
*/
public function get_user_column(): ?string;
public function get_user_column(): string|null;
/**
* Sets a user object to the ban type to have it excluded