@@ -51,7 +51,7 @@ public function __construct(
5151 /**
5252 * Create a new instance from a URI object.
5353 */
54- public static function fromUri (#[SensitiveParameter] Stringable |string $ uri ): self
54+ public static function fromUri (Stringable |string $ uri ): self
5555 {
5656 $ uri = self ::filterUri ($ uri );
5757
@@ -64,7 +64,7 @@ public static function fromUri(#[SensitiveParameter] Stringable|string $uri): se
6464 /**
6565 * Create a new instance from an Authority object.
6666 */
67- public static function fromAuthority (#[SensitiveParameter] Stringable |string |null $ authority ): self
67+ public static function fromAuthority (Stringable |string |null $ authority ): self
6868 {
6969 return match (true ) {
7070 $ authority instanceof AuthorityInterface => self ::new ($ authority ->getUserInfo ()),
@@ -80,7 +80,7 @@ public static function fromAuthority(#[SensitiveParameter] Stringable|string|nul
8080 *
8181 * @param array{user? : ?string, pass? : ?string} $components
8282 */
83- public static function fromComponents (#[SensitiveParameter] array $ components ): self
83+ public static function fromComponents (array $ components ): self
8484 {
8585 $ components += ['user ' => null , 'pass ' => null ];
8686
@@ -93,7 +93,7 @@ public static function fromComponents(#[SensitiveParameter] array $components):
9393 /**
9494 * Creates a new instance from an encoded string.
9595 */
96- public static function new (#[SensitiveParameter] Stringable |string |null $ value = null ): self
96+ public static function new (Stringable |string |null $ value = null ): self
9797 {
9898 if ($ value instanceof UriComponentInterface) {
9999 $ value = $ value ->value ();
@@ -185,7 +185,7 @@ public function withPass(#[SensitiveParameter] Stringable|string|null $password)
185185 *
186186 * Create a new instance from a URI object.
187187 */
188- public static function createFromUri (#[SensitiveParameter] Psr7UriInterface |UriInterface $ uri ): self
188+ public static function createFromUri (Psr7UriInterface |UriInterface $ uri ): self
189189 {
190190 return self ::fromUri ($ uri );
191191 }
@@ -200,7 +200,7 @@ public static function createFromUri(#[SensitiveParameter] Psr7UriInterface|UriI
200200 *
201201 * Create a new instance from an Authority object.
202202 */
203- public static function createFromAuthority (#[SensitiveParameter] AuthorityInterface |Stringable |string $ authority ): self
203+ public static function createFromAuthority (AuthorityInterface |Stringable |string $ authority ): self
204204 {
205205 return self ::fromAuthority ($ authority );
206206 }
@@ -215,7 +215,7 @@ public static function createFromAuthority(#[SensitiveParameter] AuthorityInterf
215215 *
216216 * Creates a new instance from an encoded string.
217217 */
218- public static function createFromString (#[SensitiveParameter] Stringable |string $ userInfo ): self
218+ public static function createFromString (Stringable |string $ userInfo ): self
219219 {
220220 return self ::new ($ userInfo );
221221 }
0 commit comments