diff --git a/Sources/Graphics/Gif/ColorTable.php b/Sources/Graphics/Gif/ColorTable.php index 3ed3a1de95e..e8b5446cf4f 100644 --- a/Sources/Graphics/Gif/ColorTable.php +++ b/Sources/Graphics/Gif/ColorTable.php @@ -52,7 +52,7 @@ public function load(string $lpData, int $num): bool return true; } - public function toString() + public function toString(): string { $ret = ''; @@ -66,7 +66,7 @@ public function toString() return $ret; } - public function colorIndex($rgb) + public function colorIndex(string $rgb): int { $dif = 0; $rgb = intval($rgb) & 0xFFFFFF;