Skip to content

Commit aae1708

Browse files
committed
[minor] chore: ignore false positive from PHP_CodeSniffer
1 parent 1b17b37 commit aae1708

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Address.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static function netmask(ProtocolVersion $version, int $prefix): self
5353
$bitsLength = $version->getBitsLength();
5454
$mask = [];
5555
for ($i = 0; $i < $bitsLength; $i += 32) {
56+
// phpcs:ignore SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses -- This seems a false-positive: the parentheses are required.
5657
$mask[] = 0xffffffff & ~((1 << 32 - \min($prefix, 32)) - 1);
5758
$prefix -= 32;
5859
}

0 commit comments

Comments
 (0)