(Bar/Line)Graph: Fix `Variable '$ts' is probably undefined`
This commit is contained in:
parent
e3b89184ae
commit
b68eb40103
|
@ -67,6 +67,7 @@ class BarGraph extends Styleable implements Drawable
|
|||
$this->dataSet = $dataSet;
|
||||
|
||||
$this->tooltips = $tooltips;
|
||||
$ts = [];
|
||||
foreach ($this->tooltips as $value) {
|
||||
$ts[] = $value;
|
||||
}
|
||||
|
|
|
@ -74,6 +74,7 @@ class LineGraph extends Styleable implements Drawable
|
|||
$this->graphs = $graphs;
|
||||
|
||||
$this->tooltips = $tooltips;
|
||||
$ts = [];
|
||||
foreach ($this->tooltips as $value) {
|
||||
$ts[] = $value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue