]> git.mxchange.org Git - friendica.git/commitdiff
Fix usage of static
authorArt4 <art4@wlabs.de>
Tue, 5 Nov 2024 11:27:29 +0000 (11:27 +0000)
committerArt4 <art4@wlabs.de>
Tue, 5 Nov 2024 11:27:29 +0000 (11:27 +0000)
src/Content/Post/Entity/PostMedia.php

index a856118b80617884133ed21121c95c0a1eacf90f..0dd33091763964c7a47983e1cf7978213da16fee 100644 (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,