diff --git a/src/Content/Post/Entity/PostMedia.php b/src/Content/Post/Entity/PostMedia.php index a856118b80..0dd3309176 100644 --- a/src/Content/Post/Entity/PostMedia.php +++ b/src/Content/Post/Entity/PostMedia.php @@ -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,