Skip to content

Commit 972fa3a

Browse files
committed
Fix datetime properties in remaining entities
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent 09ac406 commit 972fa3a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Doctrine/Entity/AbstractInstallations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getMergedAt(): ?\DateTimeImmutable
5757
return $this->mergedAt;
5858
}
5959

60-
public function increase(\DateTimeInterface $date): void
60+
public function increase(\DateTimeImmutable $date): void
6161
{
6262
$key = $date->format('Ymd');
6363

src/Doctrine/Entity/ResetPasswordRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ResetPasswordRequest implements ResetPasswordRequestInterface
2121
#[ORM\JoinColumn(nullable: false)]
2222
private User $user;
2323

24-
public function __construct(User $user, \DateTimeInterface $expiresAt, string $selector, string $hashedToken)
24+
public function __construct(User $user, \DateTimeImmutable $expiresAt, string $selector, string $hashedToken)
2525
{
2626
$this->user = $user;
2727
$this->initialize($expiresAt, $selector, $hashedToken);

src/Doctrine/Repository/ResetPasswordRequestRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public function __construct(ManagerRegistry $registry)
2727
*/
2828
public function createResetPasswordRequest(object $user, \DateTimeInterface $expiresAt, string $selector, string $hashedToken): ResetPasswordRequestInterface
2929
{
30-
return new ResetPasswordRequest($user, $expiresAt, $selector, $hashedToken);
30+
return new ResetPasswordRequest($user, \DateTimeImmutable::createFromInterface($expiresAt), $selector, $hashedToken);
3131
}
3232
}

0 commit comments

Comments
 (0)