From d24cfb4ab577e503628679c44050a2fa18a39b61 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 8 Dec 2024 21:27:46 +0100 Subject: [PATCH] Use type-declarations in GadgetDefinitionContentArmor Change-Id: Ifb3d45a85ff0c0f25e3f42aaeecc06a6b1b762a3 --- includes/Content/GadgetDefinitionContentArmor.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/Content/GadgetDefinitionContentArmor.php b/includes/Content/GadgetDefinitionContentArmor.php index a9e24654..83e75162 100644 --- a/includes/Content/GadgetDefinitionContentArmor.php +++ b/includes/Content/GadgetDefinitionContentArmor.php @@ -22,14 +22,13 @@ namespace MediaWiki\Extension\Gadgets\Content; class GadgetDefinitionContentArmor { - /** @var string */ - private $value; + private string $value; - public function __construct( $value ) { + public function __construct( string $value ) { $this->value = $value; } - public function __toString() { + public function __toString(): string { return $this->value; } }