Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 31, 2023
1 parent 68e2fc6 commit 642bc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Modifiers/ColorizeModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public function apply(ImageInterface $image): ImageInterface

private function normalizeLevel(int $level): int
{
return $level > 0 ? $level / 5 : ($level + 100) / 100;
return $level > 0 ? round($level / 5) : round(($level + 100) / 100);
}
}

0 comments on commit 642bc5e

Please sign in to comment.