Fix usage of static

This commit is contained in:
Art4 2024-11-05 11:27:29 +00:00
parent f024de4350
commit bf04b3e57d

View file

@ -228,7 +228,7 @@ class PostMedia extends BaseEntity
$newHeight = $dimensionts['height'];
}
return new static(
return new self(
$this->uriId,
$this->url,
$this->type,
@ -255,7 +255,7 @@ class PostMedia extends BaseEntity
public function withUrl(\GuzzleHttp\Psr7\Uri $url): self
{
return new static(
return new self(
$this->uriId,
$url,
$this->type,