Skip to content

Commit da5e1e2

Browse files
authored
Merge pull request #26 from beeznest/1
Add fixes for PHP 7.1 support - refs #1
2 parents 50d1c2d + 66a1b08 commit da5e1e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Chart/Draw.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ public function drawFilledCircle($X, $Y, $Radius, array $Format = array())
11341134
);
11351135
}
11361136

1137-
$this->Mask = "";
1137+
$this->Mask = [];
11381138
$Color = $this->allocateColor($this->Picture, $R, $G, $B, $Alpha);
11391139
for ($i = 0; $i <= $Radius * 2; $i++) {
11401140
$Slice = sqrt($Radius * $Radius - ($Radius - $i) * ($Radius - $i));
@@ -1155,7 +1155,7 @@ public function drawFilledCircle($X, $Y, $Radius, array $Format = array())
11551155
array("R" => $R, "G" => $G, "B" => $B, "Alpha" => $Alpha, "Ticks" => $Ticks)
11561156
);
11571157
}
1158-
$this->Mask = "";
1158+
$this->Mask = [];
11591159

11601160
if ($BorderR != -1) {
11611161
$this->drawCircle(
@@ -2457,7 +2457,7 @@ public function drawLegend($X, $Y, array $Format = array())
24572457
$Y = $Y + max($this->FontSize * count($Lines), $IconAreaHeight) + 5;
24582458
} elseif ($Mode == LEGEND_HORIZONTAL) {
24592459
$Lines = preg_split("/\n/", $Serie["Description"]);
2460-
$Width = "";
2460+
$Width = [];
24612461
foreach ($Lines as $Key => $Value) {
24622462
$BoxArray = $this->drawText(
24632463
$X + $IconAreaWidth + 4,

0 commit comments

Comments
 (0)