From 8eb2443833d1e1234fc307588059baaeaaf70c93 Mon Sep 17 00:00:00 2001 From: bencroker Date: Mon, 23 Sep 2024 14:29:35 +0200 Subject: [PATCH] PHPStan ignore --- src/elements/ContactElement.php | 2 ++ 1 file changed, 2 insertions(+) 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;