chore: configure PHPStan Level 6 and resolve strict-type warnings

This commit is contained in:
Enes Yakıştır
2026-05-31 23:00:56 +03:00
parent 873b4c4233
commit 1ea2579d20
8 changed files with 33 additions and 2 deletions
+3
View File
@@ -92,6 +92,9 @@ class ColorContrast extends AbstractRule
return null;
}
/**
* @return array{0: int, 1: int, 2: int}|null
*/
private function hexToRgb(string $hex): ?array
{
$hex = ltrim($hex, '#');