Skip to content

Commit

Permalink
Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 31, 2023
1 parent 642bc5e commit 92c37c5
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 ? round($level / 5) : round(($level + 100) / 100);
return $level > 0 ? intval(round($level / 5)) : intval(round(($level + 100) / 100));
}
}

0 comments on commit 92c37c5

Please sign in to comment.