8000 fix: PHP 8.4 deprecations · symfony/maker-bundle@6f59bff · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f59bff

Browse files
committed
fix: PHP 8.4 deprecations
1 parent 0624f13 commit 6f59bff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

templates/authenticator/EmptyAuthenticator.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
2626
// TODO: Implement onAuthenticationFailure() method.
2727
}
2828

29-
// public function start(Request $request, AuthenticationException $authException = null): Response
29+
// public function start(Request $request, ?AuthenticationException $authException = null): Response
3030
// {
3131
// /*
3232
// * If you would like this class to control what happens when an anonymous user accesses a

templates/security/custom/Authenticator.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
5454
return new JsonResponse($data, Response::HTTP_UNAUTHORIZED);
5555
}
5656

57-
// public function start(Request $request, AuthenticationException $authException = null): Response
57+
// public function start(Request $request, ?AuthenticationException $authException = null): Response
5858
// {
5959
// /*
6060
// * If you would like this class to control what happens when an anonymous user accesses a

templates/serializer/Normalizer.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __construct(
1212
) {
1313
}
1414

15-
public function normalize($object, string $format = null, array $context = []): array
15+
public function normalize($object, ?string $format = null, array $context = []): array
1616
{
1717
$data = $this->normalizer->normalize($object, $format, $context);
1818

@@ -21,7 +21,7 @@ public function normalize($object, string $format = null, array $context = []):
2121
return $data;
2222
}
2323

24-
public function supportsNormalization($data, string $format = null, array $context = []): bool
24+
public function supportsNormalization($data, ?string $format = null, array $context = []): bool
2525
{
2626
<?php if ($entity_exists): ?>
2727
return $data instanceof <?= $entity_name ?>;

tests/fixtures/make-entity/regenerate-embedded/attributes/src/Entity/Money.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Money
1616
#[ORM\Column(name: 'amount')]
1717
private ?int $amount;
1818

19-
public function __construct($amount = null, Currency $currency = null)
19+
public function __construct($amount = null, ?Currency $currency = null)
2020
{
2121
$this->amount = $amount;
2222
$this->currency = $currency ?? new Currency();

tests/fixtures/security/make-custom-authenticator/expected/FixtureAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
6363
return new JsonResponse($data, Response::HTTP_UNAUTHORIZED);
6464
}
6565

66-
// public function start(Request $request, AuthenticationException $authException = null): Response
66+
// public function start(Request $request, ?AuthenticationException $authException = null): Response
6767
// {
6868
// /*
6969
// * If you would like this class to control what happens when an anonymous user accesses a

0 commit comments

Comments
 (0)
0