Handle DateTime type for activity while DateTimeImmutable is expected

This commit is contained in:
2024-01-08 12:35:09 +01:00
parent fe695f1a14
commit fbbf421d8b
2 changed files with 11 additions and 6 deletions

View File

@@ -274,7 +274,7 @@ class User implements UserInterface, \Stringable
return $this->mainLocation;
}
public function getMainScope(\DateTime $atDate = null): ?Scope
public function getMainScope(\DateTimeImmutable $atDate = null): ?Scope
{
$atDate ??= new \DateTimeImmutable('now');
@@ -326,7 +326,7 @@ class User implements UserInterface, \Stringable
return $this->salt;
}
public function getUserJob(\DateTime $atDate = null): ?UserJob
public function getUserJob(\DateTimeImmutable $atDate = null): ?UserJob
{
$atDate ??= new \DateTimeImmutable('now');