aboutsummaryrefslogtreecommitdiff
path: root/src/NXP
diff options
context:
space:
mode:
Diffstat (limited to 'src/NXP')
-rw-r--r--src/NXP/MathExecutor.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/NXP/MathExecutor.php b/src/NXP/MathExecutor.php
index d23ba80..434246a 100644
--- a/src/NXP/MathExecutor.php
+++ b/src/NXP/MathExecutor.php
@@ -432,7 +432,8 @@ class MathExecutor
public function setVar(string $variable, $value) : self
{
if (!is_scalar($value)) {
- throw new MathExecutorException("Variable ({$variable}) value must be a scalar type ({gettype($value)})");
+ $type = gettype($value);
+ throw new MathExecutorException("Variable ({$variable}) type ({$type}) is not scalar");
}
$this->variables[$variable] = $value;