Cast heading level to int, in forms\ToggleCompositeField.php

This commit is contained in:
assertchris 2016-04-20 16:16:59 +12:00
parent f49c0b58d9
commit 6fd11f584d
No known key found for this signature in database
GPG Key ID: C214A2526E8D4631

View File

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