Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/authenticator/EmptyAuthenticator.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
// TODO: Implement onAuthenticationFailure() method.
}

// public function start(Request $request, AuthenticationException $authException = null): Response
// public function start(Request $request, ?AuthenticationException $authException = null): Response
// {
// /*
// * If you would like this class to control what happens when an anonymous user accesses a
Expand Down
2 changes: 1 addition & 1 deletion templates/security/custom/Authenticator.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
return new JsonResponse($data, Response::HTTP_UNAUTHORIZED);
}

// public function start(Request $request, AuthenticationException $authException = null): Response
// public function start(Request $request, ?AuthenticationException $authException = null): Response
// {
// /*
// * If you would like this class to control what happens when an anonymous user accesses a
Expand Down
4 changes: 2 additions & 2 deletions templates/serializer/Normalizer.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(
) {
}

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

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

public function supportsNormalization($data, string $format = null, array $context = []): bool
public function supportsNormalization($data, ?string $format = null, array $context = []): bool
{
<?php if ($entity_exists): ?>
return $data instanceof <?= $entity_name ?>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Money
#[ORM\Column(name: 'amount')]
private ?int $amount;

public function __construct($amount = null, Currency $currency = null)
public function __construct($amount = null, ?Currency $currency = null)
{
$this->amount = $amount;
$this->currency = $currency ?? new Currency();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
return new JsonResponse($data, Response::HTTP_UNAUTHORIZED);
}

// public function start(Request $request, AuthenticationException $authException = null): Response
// public function start(Request $request, ?AuthenticationException $authException = null): Response
// {
// /*
// * If you would like this class to control what happens when an anonymous user accesses a
Expand Down
Loading