@@ -76,7 +76,7 @@ |
||
76 | 76 | if (preg_match(self::SCHEME_HOST_PORT_URI, $server, $matches)) { |
77 | 77 | $this->scheme = isset($matches['scheme']) ? $matches['scheme'] : "tcp://"; |
78 | 78 | $this->host = isset($matches['host']) ? $matches['host'] : self::DEFAULT_HOST; |
79 | - $this->port = isset($matches['port']) ? (int) substr($matches['port'], 1) : self::$defaultPorts[$this->scheme]; |
|
79 | + $this->port = isset($matches['port']) ? (int)substr($matches['port'], 1) : self::$defaultPorts[$this->scheme]; |
|
80 | 80 | } |
81 | 81 | else // Match attempt failed. |
82 | 82 | throw new \InvalidArgumentException(sprintf("'%s' is not a valid URI.", $server)); |