Skip to content

Commit 28dea6e

Browse files
committed
Fix PhpStan
1 parent 5616283 commit 28dea6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MandelbrotSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function generate(MandelbrotSetRequest $request): void
6060

6161
$blackColor = imagecolorallocate($im, 0, 0, 0);
6262
$alpha_color = imagecolorallocatealpha($im, 0, 0, 0, 127);
63-
imagefill($im, 0, 0, $alpha_color);
63+
imagefill($im, 0, 0, (int) $alpha_color);
6464

6565
for ($y = 0; $y <= $dim_y; $y++) { // browsing and evaluating each point
6666
for ($x = 0; $x <= $dim_x; $x++) { // find the coordinates of the point that is added in each iteration
@@ -100,7 +100,7 @@ public function generate(MandelbrotSetRequest $request): void
100100

101101
// if in each iteration he held a new point at a distance of 2 or less, the original point is filled.
102102
if ($i >= $itt) {
103-
imagesetpixel($im, (int) round($x), (int) round($y), $blackColor);
103+
imagesetpixel($im, (int) round($x), (int) round($y), (int) $blackColor);
104104
}
105105
}
106106
}

0 commit comments

Comments
 (0)