From: Art4 Date: Tue, 5 Nov 2024 11:27:29 +0000 (+0000) Subject: Fix usage of static X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf04b3e57d6532a7139ea88d5315dc40a835094a;p=friendica.git Fix usage of static --- 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,