The expression return $this->deletedAt could return the type null which is incompatible with the type-hinted return DateTimeInterface. Consider adding an additional type-check to rule them out.
Loading history...
21
}
22
23
1
#[ORM\PreUpdate]
24
public function setDeletedAt(): void
25
{
26
1
$this->deletedAt = new DateTimeImmutable('now', new DateTimeZone('UTC'));