The expression return $this->dateUpdated could return the type DateTimeInterface which includes types incompatible with the type-hinted return DateTime|null. Consider adding an additional type-check to rule them out.
Loading history...
36
}
37
38
/**
39
* Set the updated date.
40
*
41
* @param \DateTimeInterface|null $dateTime
42
*/
43
public function setDateUpdated(?\DateTimeInterface $dateTime): void