diff --git a/src/elements/ContactElement.php b/src/elements/ContactElement.php index 744bbe59..521df20d 100755 --- a/src/elements/ContactElement.php +++ b/src/elements/ContactElement.php @@ -829,7 +829,9 @@ protected function thumbSvg(): ?string // Choose a color based on the UUID $uid = strtolower($this->uid ?? '00ff'); $totalColors = count(self::$photoColors); + /** @phpstan-ignore-next-line */ $color1Index = base_convert(substr($uid, 0, 2), 16, 10) % $totalColors; + /** @phpstan-ignore-next-line */ $color2Index = base_convert(substr($uid, 2, 2), 16, 10) % $totalColors; if ($color2Index === $color1Index) { $color2Index = ($color1Index + 1) % $totalColors;