Fixes
This commit is contained in:
parent
7f3b5ecb8a
commit
6cb94dbce2
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
||||
<coverage line-rate="0.73378839590444" branch-rate="0" lines-covered="2150" lines-valid="2930" branches-covered="0" branches-valid="0" complexity="1321" version="0.4" timestamp="1752264041">
|
||||
<coverage line-rate="0.73378839590444" branch-rate="0" lines-covered="2150" lines-valid="2930" branches-covered="0" branches-valid="0" complexity="1321" version="0.4" timestamp="1752353170">
|
||||
<sources>
|
||||
<source>/home/thomas/projekte/calc/src</source>
|
||||
</sources>
|
||||
|
||||
@ -256,7 +256,7 @@ class Engine
|
||||
|
||||
public function calc()
|
||||
{
|
||||
$this->calcGraph = new Graph($this->formulas, $this->parameters);
|
||||
$this->calcGraph = new Graph((string) $this->formulas, (string) $this->parameters);
|
||||
$this->debugCalcFormel = [];
|
||||
$this->debugCalcVariables = [];
|
||||
$this->debugFlatPrice = [];
|
||||
|
||||
@ -30,7 +30,7 @@ class Calc
|
||||
eval($this->params);
|
||||
eval($this->formulas);
|
||||
if ($y->getParsed() != '') {
|
||||
eval('@$result = ' . $y->getParsed() . ';');
|
||||
eval('$result = ' . $y->getParsed() . ';');
|
||||
$y->setResult($result);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user