From 089e4448619f2c7890e7d8896c02738811359837 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Fri, 15 Nov 2024 22:05:34 +0100 Subject: [PATCH] suppress psalm error --- src/Generator/Protobuf.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Generator/Protobuf.php b/src/Generator/Protobuf.php index 3d7bdfb..868a0a4 100644 --- a/src/Generator/Protobuf.php +++ b/src/Generator/Protobuf.php @@ -68,6 +68,7 @@ private function generateNumber(string $name): int $result+= ord($name[$i]); } + /** @psalm-suppress TypeDoesNotContainType */ if ($result >= 19_000 && $result <= 19_999) { // Field numbers 19,000 to 19,999 are reserved for the Protocol Buffers implementation $result += (19_999 - $result) + 1;