1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-31 17:41:58 +02:00

Fixed implicit converstion from float to int

This commit is contained in:
Thomas Picquet
2022-01-31 11:20:59 -08:00
parent 4fc4e31717
commit 66bb8a4b0f

View File

@@ -15,7 +15,7 @@ class BrightnessModifier implements ModifierInterface
public function apply(ImageInterface $image): ImageInterface
{
foreach ($image as $frame) {
imagefilter($frame->getCore(), IMG_FILTER_BRIGHTNESS, ($this->level * 2.55));
imagefilter($frame->getCore(), IMG_FILTER_BRIGHTNESS, intval($this->level * 2.55));
}
return $image;