diff --git a/src/block/Liquid.php b/src/block/Liquid.php index 6e3c8df35..711d148ca 100644 --- a/src/block/Liquid.php +++ b/src/block/Liquid.php @@ -83,6 +83,9 @@ abstract class Liquid extends Transparent{ /** @return $this */ public function setDecay(int $decay) : self{ + if($decay < 0 || $decay > 7){ + throw new \InvalidArgumentException("Decay must be in range 0-7"); + } $this->decay = $decay; return $this; }