diff --git a/web/lib/MRBS/Form/Element.php b/web/lib/MRBS/Form/Element.php index 8389d54c48..d13047735b 100644 --- a/web/lib/MRBS/Form/Element.php +++ b/web/lib/MRBS/Form/Element.php @@ -38,7 +38,7 @@ public function __construct($tag, $self_closing=false) // If $raw is true then the text will not be put through htmlspecialchars(). Only to // be used for trusted text. - public function setText($text, $text_at_start=false, bool $raw=false) + public function setText($text, bool $text_at_start=false, bool $raw=false) { if ($this->self_closing) { diff --git a/web/lib/MRBS/Form/Field.php b/web/lib/MRBS/Form/Field.php index 25d010fc77..45ca30aea9 100644 --- a/web/lib/MRBS/Form/Field.php +++ b/web/lib/MRBS/Form/Field.php @@ -54,7 +54,7 @@ public function removeControl() // If $raw is true then the text will not be put through htmlspecialchars(). Only to // be used for trusted text. - public function setLabel($text, $text_at_start=false, bool $raw=false) + public function setLabel($text, bool $text_at_start=false, bool $raw=false) { $label = $this->getElement('label'); $label->setText($text, $text_at_start, $raw);