mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-12-19 02:10:41 +00:00
Use type-declarations in GadgetDefinitionContentArmor
Change-Id: Ifb3d45a85ff0c0f25e3f42aaeecc06a6b1b762a3
This commit is contained in:
parent
871e06f6a2
commit
d24cfb4ab5
|
@ -22,14 +22,13 @@ namespace MediaWiki\Extension\Gadgets\Content;
|
||||||
|
|
||||||
class GadgetDefinitionContentArmor {
|
class GadgetDefinitionContentArmor {
|
||||||
|
|
||||||
/** @var string */
|
private string $value;
|
||||||
private $value;
|
|
||||||
|
|
||||||
public function __construct( $value ) {
|
public function __construct( string $value ) {
|
||||||
$this->value = $value;
|
$this->value = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString() {
|
public function __toString(): string {
|
||||||
return $this->value;
|
return $this->value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue