diff --git a/forms/ToggleCompositeField.php b/forms/ToggleCompositeField.php index c6d9df676..6c53b0f82 100644 --- a/forms/ToggleCompositeField.php +++ b/forms/ToggleCompositeField.php @@ -111,7 +111,7 @@ class ToggleCompositeField extends CompositeField { * @return $this */ public function setHeadingLevel($headingLevel) { - $this->headingLevel = $headingLevel; + $this->headingLevel = (int) $headingLevel; return $this; }