mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-03 15:04:32 +02:00
Fixed "implicitly marking parameter as nullable" deprecations in PHP 8.4 fixed
This commit is contained in:
parent
d94c4af1be
commit
b724b05de6
31 changed files with 50 additions and 50 deletions
|
@ -43,12 +43,12 @@ class UniqueObjectCollection extends Constraint
|
|||
* @param array|string $fields the combination of fields that must contain unique values or a set of options
|
||||
*/
|
||||
public function __construct(
|
||||
array $options = null,
|
||||
string $message = null,
|
||||
callable $normalizer = null,
|
||||
array $groups = null,
|
||||
?array $options = null,
|
||||
?string $message = null,
|
||||
?callable $normalizer = null,
|
||||
?array $groups = null,
|
||||
mixed $payload = null,
|
||||
array|string $fields = null,
|
||||
array|string|null $fields = null,
|
||||
public bool $allowNull = true,
|
||||
) {
|
||||
parent::__construct($options, $groups, $payload);
|
||||
|
|
|
@ -31,8 +31,8 @@ class ValidGoogleAuthCode extends Constraint
|
|||
* @param TwoFactorInterface|null $user The user to use for the validation process, if null, the current user is used
|
||||
*/
|
||||
public function __construct(
|
||||
array $options = null,
|
||||
array $groups = null,
|
||||
?array $options = null,
|
||||
?array $groups = null,
|
||||
mixed $payload = null,
|
||||
public ?TwoFactorInterface $user = null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue