Removing the numeric test on setVar.
This commit is contained in:
parent
fa935b0af6
commit
9e0c01722f
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue