This commit is contained in:
Thomas Peterson 2025-07-12 22:46:27 +02:00
parent 7f3b5ecb8a
commit 6cb94dbce2
3 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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 = [];

View File

@ -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);
}
}