Merge pull request #5357 from assertchris/cast-heading-level-to-int-in-forms-toggle-composite-field

Cast heading level to int, in forms\ToggleCompositeField.php
This commit is contained in:
Damian Mooyman 2016-04-20 18:01:43 +12:00
commit 30894eb4cf

View File

@ -111,7 +111,7 @@ class ToggleCompositeField extends CompositeField {
* @return $this
*/
public function setHeadingLevel($headingLevel) {
$this->headingLevel = $headingLevel;
$this->headingLevel = (int) $headingLevel;
return $this;
}