Added variable type to diagnostic message
This commit is contained in:
parent
af2436d7cc
commit
7db873a636
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class MathExecutor
|
||||||
public function setVar($variable, $value)
|
public function setVar($variable, $value)
|
||||||
{
|
{
|
||||||
if (!is_numeric($value)) {
|
if (!is_numeric($value)) {
|
||||||
throw new \Exception("Variable ({$variable}) value must be a number ({$value})");
|
throw new \Exception("Variable ({$variable}) value must be a number ({$value}) type ({gettype($value)})");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->variables[$variable] = $value;
|
$this->variables[$variable] = $value;
|
||||||
|
|
Loading…
Reference in a new issue