Skip to content

Commit

Permalink
Merge pull request #26 from beeznest/1
Browse files Browse the repository at this point in the history
Add fixes for PHP 7.1 support - refs #1
  • Loading branch information
szymach authored Mar 8, 2017
2 parents 50d1c2d + 66a1b08 commit da5e1e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Chart/Draw.php
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ public function drawFilledCircle($X, $Y, $Radius, array $Format = array())
);
}

$this->Mask = "";
$this->Mask = [];
$Color = $this->allocateColor($this->Picture, $R, $G, $B, $Alpha);
for ($i = 0; $i <= $Radius * 2; $i++) {
$Slice = sqrt($Radius * $Radius - ($Radius - $i) * ($Radius - $i));
Expand All @@ -1155,7 +1155,7 @@ public function drawFilledCircle($X, $Y, $Radius, array $Format = array())
array("R" => $R, "G" => $G, "B" => $B, "Alpha" => $Alpha, "Ticks" => $Ticks)
);
}
$this->Mask = "";
$this->Mask = [];

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

0 comments on commit da5e1e2

Please sign in to comment.