Removing the numeric test on setVar.

This commit is contained in:
charles VILLETTE 2016-07-07 14:36:01 +02:00
parent fa935b0af6
commit 9e0c01722f

View file

@ -91,10 +91,6 @@ class MathExecutor
*/
public function setVar($variable, $value)
{
if (!is_numeric($value)) {
throw new \Exception("Variable value must be a number");
}
$this->variables[$variable] = $value;
return $this;