1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-16 19:04:00 +02:00

Fix deprecation warning

This commit is contained in:
Oliver Vogel
2023-10-31 17:42:39 +01:00
parent 68e2fc6fb4
commit 642bc5e8fa

View File

@@ -35,6 +35,6 @@ class ColorizeModifier implements ModifierInterface
private function normalizeLevel(int $level): int
{
return $level > 0 ? $level / 5 : ($level + 100) / 100;
return $level > 0 ? round($level / 5) : round(($level + 100) / 100);
}
}