Skip to content

Commit 7c9d5c4

Browse files
committed
Fix copy/paste typo
1 parent 55e3bdc commit 7c9d5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LibDNS/Records/Types/IPv4Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function setOctets(array $octets)
8686
}
8787

8888
foreach ($octets as &$octet) {
89-
if (strspn((string)$short, "0123456789") !== strlen($short) || $octet < 0x00 || $octet > 0xff) {
89+
if (strspn((string)$octet, "0123456789") !== strlen($octet) || $octet < 0x00 || $octet > 0xff) {
9090
throw new \UnexpectedValueException('Octet list is not a valid IPv4 address: invalid octet value ' . $octet);
9191
}
9292

0 commit comments

Comments
 (0)