aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/MathExecutor.php
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2017-09-12 15:33:11 +0300
committerGitHub <noreply@github.com>2017-09-12 15:33:11 +0300
commit855ca5dfc1a6d70d9872df4b0d7bea8ba3c4c040 (patch)
tree1015164773b06cae93285d7130c5577abe013638 /src/NXP/MathExecutor.php
parent3cd949c04fe0aa3820694b47e951bb6f1528ac72 (diff)
parent9e0c01722f8daf63cb1ceb77a0f0e729d2096362 (diff)
Merge pull request #16 from Deisss/master
Removing the numeric test on setVar.
Diffstat (limited to 'src/NXP/MathExecutor.php')
-rw-r--r--src/NXP/MathExecutor.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/NXP/MathExecutor.php b/src/NXP/MathExecutor.php
index 7eaa914..5cb4bca 100644
--- a/src/NXP/MathExecutor.php
+++ b/src/NXP/MathExecutor.php
@@ -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;