mirror of
https://github.com/Intervention/image.git
synced 2025-08-17 03:13:59 +02:00
Fix deprecation warning
This commit is contained in:
@@ -35,6 +35,6 @@ class ColorizeModifier implements ModifierInterface
|
|||||||
|
|
||||||
private function normalizeLevel(int $level): int
|
private function normalizeLevel(int $level): int
|
||||||
{
|
{
|
||||||
return $level > 0 ? $level / 5 : ($level + 100) / 100;
|
return $level > 0 ? round($level / 5) : round(($level + 100) / 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user