wp-includes/SimplePie/src/IRI.php:920Set the port. Returns true on success, false on failure (if there are any invalid characters).
$portstringbool public function set_port($port) { if ($port === null) { $this->port = null; return true; } elseif (strspn($port, '0123456789') === strlen($port)) { $this->port = (int) $port; $this->scheme_normalization(); return true; } $this->port = null; return false; }One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$port retyped from string to string|int|null.verified against sourcesrc/wp-includes/SimplePie/src/IRI.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.