@@ -682,7 +682,7 @@ public function getFragment()
682682 * You can check if a scheme is valid before setting it using the
683683 * validateScheme() method.
684684 *
685- * @param string $scheme
685+ * @param string|null $scheme
686686 * @throws Exception\InvalidUriPartException
687687 * @return Uri
688688 */
@@ -703,7 +703,7 @@ public function setScheme($scheme)
703703 /**
704704 * Set the URI User-info part (usually user:password)
705705 *
706- * @param string $userInfo
706+ * @param string|null $userInfo
707707 * @return Uri
708708 * @throws Exception\InvalidUriPartException If the schema definition
709709 * does not have this part
@@ -728,7 +728,7 @@ public function setUserInfo($userInfo)
728728 * example the HTTP RFC clearly states that only IPv4 and valid DNS names
729729 * are allowed in HTTP URIs.
730730 *
731- * @param string $host
731+ * @param string|null $host
732732 * @throws Exception\InvalidUriPartException
733733 * @return Uri
734734 */
@@ -752,7 +752,7 @@ public function setHost($host)
752752 /**
753753 * Set the port part of the URI
754754 *
755- * @param int $port
755+ * @param int|null $port
756756 * @return Uri
757757 */
758758 public function setPort ($ port )
@@ -764,7 +764,7 @@ public function setPort($port)
764764 /**
765765 * Set the path
766766 *
767- * @param string $path
767+ * @param string|null $path
768768 * @return Uri
769769 */
770770 public function setPath ($ path )
@@ -780,7 +780,7 @@ public function setPath($path)
780780 * query string. Array values will be represented in the query string using
781781 * PHP's common square bracket notation.
782782 *
783- * @param string|array $query
783+ * @param string|array|null $query
784784 * @return Uri
785785 */
786786 public function setQuery ($ query )
@@ -798,7 +798,7 @@ public function setQuery($query)
798798 /**
799799 * Set the URI fragment part
800800 *
801- * @param string $fragment
801+ * @param string|null $fragment
802802 * @return Uri
803803 * @throws Exception\InvalidUriPartException If the schema definition
804804 * does not have this part
0 commit comments