Skip to content

Commit 87afe05

Browse files
committed
Fixed deprecations for PHP8.4
1 parent d2170b8 commit 87afe05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Admin/Filter/MoneyAmountFilterType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MoneyAmountFilterType extends AbstractType
3131
{
3232
private readonly string $valueType;
3333

34-
public function __construct(string $valueType = null, private readonly array $valueTypeOptions = [])
34+
public function __construct(?string $valueType = null, private readonly array $valueTypeOptions = [])
3535
{
3636
$this->valueType = $valueType ?: NumberType::class;
3737
}

src/Controller/ResetPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function checkEmail(): Response
7575
#[Route(path: '/reset/{token}', name: 'app_reset_password')]
7676
public function reset(Request $request, UserPasswordHasherInterface $passwordEncoder,
7777
EntityManagerInterface $entityManager,
78-
string $token = null): Response
78+
?string $token = null): Response
7979
{
8080
if ($token) {
8181
// We store the token in session and remove it from the URL, to avoid the URL being

0 commit comments

Comments
 (0)