Use type-declarations in GadgetDefinitionContentArmor

Change-Id: Ifb3d45a85ff0c0f25e3f42aaeecc06a6b1b762a3
This commit is contained in:
Umherirrender 2024-12-08 21:27:46 +01:00
parent 871e06f6a2
commit d24cfb4ab5

View file

@ -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;
}
}