[CORE][Modules][Plugin] version should be static

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-28 21:18:44 +01:00
parent fa82306f6f
commit 83599ef866
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
9 changed files with 9 additions and 9 deletions

View File

@ -103,7 +103,7 @@ class ActivityPub extends Plugin
'User-Agent' => 'GNUsocialBot ' . GNUSOCIAL_VERSION . ' - ' . GNUSOCIAL_PROJECT_URL,
];
public function version(): string
public static function version(): string
{
return '3.0.0';
}

View File

@ -43,7 +43,7 @@ use SplFileInfo;
class AudioEncoder extends Plugin
{
public function version(): string
public static function version(): string
{
return '0.1.0';
}

View File

@ -73,7 +73,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
*/
class Embed extends Plugin
{
public function version(): string
public static function version(): string
{
return '3.0.1';
}

View File

@ -44,7 +44,7 @@ use App\Util\Exception\ServerException;
*/
class FileQuota extends Plugin
{
public function version(): string
public static function version(): string
{
return '1.0.0';
}

View File

@ -49,7 +49,7 @@ use SplFileInfo;
*/
class ImageEncoder extends Plugin
{
public function version(): string
public static function version(): string
{
return '3.0.0';
}

View File

@ -59,7 +59,7 @@ class OAuth2 extends Plugin
public const OAUTH_AUTHORIZE_REL = 'http://apinamespace.org/oauth/authorize';
public static ?AuthorizationServer $authorization_server = null;
public function version(): string
public static function version(): string
{
return '3.0.0';
}

View File

@ -57,7 +57,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
*/
class StoreRemoteMedia extends Plugin
{
public function version(): string
public static function version(): string
{
return '3.0.0';
}

View File

@ -49,7 +49,7 @@ use SplFileInfo;
class VideoEncoder extends Plugin
{
public function version(): string
public static function version(): string
{
return '1.0.0';
}

View File

@ -16,7 +16,7 @@ abstract class Plugin extends Module
{
public const MODULE_TYPE = 'plugin';
public function version(): string
public static function version(): string
{
return GNUSOCIAL_BASE_VERSION;
}