We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55e3bdc commit 7c9d5c4Copy full SHA for 7c9d5c4
src/LibDNS/Records/Types/IPv4Address.php
@@ -86,7 +86,7 @@ public function setOctets(array $octets)
86
}
87
88
foreach ($octets as &$octet) {
89
- if (strspn((string)$short, "0123456789") !== strlen($short) || $octet < 0x00 || $octet > 0xff) {
+ if (strspn((string)$octet, "0123456789") !== strlen($octet) || $octet < 0x00 || $octet > 0xff) {
90
throw new \UnexpectedValueException('Octet list is not a valid IPv4 address: invalid octet value ' . $octet);
91
92
0 commit comments