Skip to content

Commit

Permalink
suppress psalm error
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 15, 2024
1 parent 9c8081b commit 089e444
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Generator/Protobuf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 089e444

Please sign in to comment.