diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2023-10-30 18:55:57 -0400 |
---|---|---|
committer | Jforrester <jforrester@wikimedia.org> | 2023-11-06 14:45:45 +0000 |
commit | b63c1de13115d0999969afb875e02e812ea6e9b2 (patch) | |
tree | 9c9112c69d056b5282039949134e9b6653a9c7f0 /includes/mail/EmailNotification.php | |
parent | 141cd5376bec932303250d4f6c9acf074e9cfe52 (diff) | |
download | mediawikicore-b63c1de13115d0999969afb875e02e812ea6e9b2.tar.gz mediawikicore-b63c1de13115d0999969afb875e02e812ea6e9b2.zip |
mail: Inline @var types
Change-Id: Id191717c1b88cc00368e1c038627250e118b563b
Diffstat (limited to 'includes/mail/EmailNotification.php')
-rw-r--r-- | includes/mail/EmailNotification.php | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index 006c7ef142e0..8afb63500463 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -71,44 +71,33 @@ class EmailNotification { */ private const ALL_CHANGES = 'all_changes'; - /** @var string */ - protected $subject = ''; + protected string $subject = ''; - /** @var string */ - protected $body = ''; + protected string $body = ''; - /** @var MailAddress|null */ - protected $replyto; + protected ?MailAddress $replyto; - /** @var MailAddress|null */ - protected $from; + protected ?MailAddress $from; - /** @var string|null */ - protected $timestamp; + protected ?string $timestamp; - /** @var string */ - protected $summary = ''; + protected string $summary = ''; - /** @var bool|null */ - protected $minorEdit; + protected ?bool $minorEdit; /** @var int|null|bool */ protected $oldid; - /** @var bool */ - protected $composed_common = false; + protected bool $composed_common = false; - /** @var string */ - protected $pageStatus = ''; + protected string $pageStatus = ''; /** @var MailAddress[] */ - protected $mailTargets = []; + protected array $mailTargets = []; - /** @var Title */ - protected $title; + protected Title $title; - /** @var User */ - protected $editor; + protected User $editor; /** * Extensions that have hooks for |