aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/Message/MessageParam.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/libs/Message/MessageParam.php')
-rw-r--r--includes/libs/Message/MessageParam.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/libs/Message/MessageParam.php b/includes/libs/Message/MessageParam.php
index 2292b6181db6..fc26a318c4e2 100644
--- a/includes/libs/Message/MessageParam.php
+++ b/includes/libs/Message/MessageParam.php
@@ -11,8 +11,7 @@ use Wikimedia\JsonCodec\JsonCodecable;
*/
abstract class MessageParam implements JsonCodecable {
- /** @var string */
- protected $type;
+ protected string $type;
/** @var mixed */
protected $value;
@@ -21,7 +20,7 @@ abstract class MessageParam implements JsonCodecable {
*
* @return string One of the ParamType constants
*/
- public function getType() {
+ public function getType(): string {
return $this->type;
}
@@ -39,5 +38,5 @@ abstract class MessageParam implements JsonCodecable {
*
* @return string
*/
- abstract public function dump();
+ abstract public function dump(): string;
}