mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-12-18 09:50:37 +00:00
Merge "Use type-declarations in GadgetDefinitionContentArmor"
This commit is contained in:
commit
a4068c3df1
|
@ -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