]> git.mxchange.org Git - friendica.git/commitdiff
Add type hints in Mastodon\Instance
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 28 Jan 2025 03:01:17 +0000 (22:01 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 28 Jan 2025 03:01:17 +0000 (22:01 -0500)
src/Object/Api/Mastodon/Instance.php

index 161494ae2dc2398a6c1e5393d15871251f54045c..8b1806f1cbc76bb8d037ee470aa662cf1912b2f4 100644 (file)
@@ -24,40 +24,24 @@ use Friendica\Object\Api\Mastodon\InstanceV2\Configuration;
  */
 class Instance extends BaseDataTransferObject
 {
-       /** @var string (URL) */
-       protected $uri;
-       /** @var string */
-       protected $title;
-       /** @var string */
-       protected $short_description;
-       /** @var string */
-       protected $description;
-       /** @var string */
-       protected $email;
-       /** @var string */
-       protected $version;
-       /** @var array */
-       protected $urls;
-       /** @var Stats */
-       protected $stats;
-       /** @var string|null This is meant as a server banner, default Mastodon "thumbnail" is 1600×620px */
-       protected $thumbnail = null;
-       /** @var array */
-       protected $languages;
-       /** @var int */
-       protected $max_toot_chars;
-       /** @var bool */
-       protected $registrations;
-       /** @var bool */
-       protected $approval_required;
-       /** @var bool */
-       protected $invites_enabled;
-       /** @var Configuration  */
-       protected $configuration;
-       /** @var Account|null */
-       protected $contact_account = null;
-       /** @var array */
-       protected $rules = [];
+       protected string $uri;
+       protected string $title;
+       protected string $short_description;
+       protected string $description;
+       protected string $email;
+       protected string $version;
+       protected array $urls;
+       protected Stats $stats;
+       /** This is meant as a server banner, default Mastodon "thumbnail" is 1600×620px */
+       protected ?string $thumbnail = null;
+       protected array $languages;
+       protected int $max_toot_chars;
+       protected bool $registrations;
+       protected bool $approval_required;
+       protected bool $invites_enabled;
+       protected Configuration $configuration;
+       protected ?Account $contact_account = null;
+       protected array $rules = [];
 
        public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, Configuration $configuration, ?Account $contact_account, array $rules)
        {