diff --git a/src/Chart/Draw.php b/src/Chart/Draw.php index 96af6a5..5db0490 100644 --- a/src/Chart/Draw.php +++ b/src/Chart/Draw.php @@ -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)); @@ -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( @@ -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,