Merge "Use type-declarations in GadgetDefinitionContentArmor"

This commit is contained in:
jenkins-bot 2024-12-09 09:26:42 +00:00 committed by Gerrit Code Review
commit a4068c3df1

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