You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \InvalidArgumentException('The volumne value must be an integer.');
369
+
thrownew \InvalidArgumentException('The volume value must be an integer or float or end in "dB".');
369
370
}
370
-
elseif($volume < 0)
371
+
//Make sure that volume is not less than 0 even if it ends in dB
372
+
elseif(preg_replace('/db$/i',"",$volume) < 0)
371
373
{
372
374
thrownew \InvalidArgumentException('Unrecognised volume value "'.$volume.'" set in \\PHPVideoToolkit\\'.get_class($this).'::setVolume. The value must be higher than or equal to 0.');
0 commit comments