Skip to content

Commit

Permalink
PHPStan ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 23, 2024
1 parent aa3a4e1 commit 8eb2443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements/ContactElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8eb2443

Please sign in to comment.