mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-12-18 18:00:36 +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 {
|
||||
|
||||
/** @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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue