forked from GNUsocial/gnu-social
[DATABASE][AUTOCODE] Update autocode to use \DateTimeInterface instead of DateTime
This commit is contained in:
@@ -43,7 +43,7 @@ class FileThumbnail
|
||||
private ?string $filename;
|
||||
private int $width;
|
||||
private int $height;
|
||||
private DateTime $modified;
|
||||
private \DateTimeInterface $modified;
|
||||
|
||||
public function setFileId(int $file_id): self
|
||||
{
|
||||
@@ -105,12 +105,12 @@ class FileThumbnail
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function setModified(DateTime $modified): self
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): DateTime
|
||||
public function getModified(): \DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
Reference in New Issue
Block a user