Skip to content

Commit 4049d03

Browse files
committed
CS
1 parent c26f6bb commit 4049d03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Util/ColourUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public static function validateColour(Terminal $terminal, string $colour, string
322322
return static::validateColourName($fallback);
323323
}
324324

325-
return static::map256To8($colour);
325+
return static::map256To8((int) $colour);
326326
}
327327

328328
private static function validateColourName(string $colourName) : string

test/Util/ColourUtilTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ public function testValidateColourThrowsExceptionIfInvalid256ColourCodeUsed(int
100100
public function invalidColourCodeProvider() : array
101101
{
102102
return [
103-
[-1],
104-
[256],
105-
[1000],
103+
[-1],
104+
[256],
105+
[1000],
106106
];
107107
}
108108

0 commit comments

Comments
 (0)