Skip to content

Commit 4923dca

Browse files
committed
Update stubs
1 parent 41aba96 commit 4923dca

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

stubs/ext/uri/Uri/Rfc3986/Uri.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ public function getScheme(): ?string
1818
public function getRawScheme(): ?string
1919
{
2020
}
21+
public function withScheme(?string $scheme): static
22+
{
23+
}
2124
public function getUserInfo(): ?string
2225
{
2326
}
2427
public function getRawUserInfo(): ?string
2528
{
2629
}
30+
public function withUserInfo(#[\SensitiveParameter] ?string $userinfo): static
31+
{
32+
}
2733
public function getUsername(): ?string
2834
{
2935
}
@@ -42,27 +48,42 @@ public function getHost(): ?string
4248
public function getRawHost(): ?string
4349
{
4450
}
51+
public function withHost(?string $host): static
52+
{
53+
}
4554
public function getPort(): ?int
4655
{
4756
}
57+
public function withPort(?int $port): static
58+
{
59+
}
4860
public function getPath(): string
4961
{
5062
}
5163
public function getRawPath(): string
5264
{
5365
}
66+
public function withPath(string $path): static
67+
{
68+
}
5469
public function getQuery(): ?string
5570
{
5671
}
5772
public function getRawQuery(): ?string
5873
{
5974
}
75+
public function withQuery(?string $query): static
76+
{
77+
}
6078
public function getFragment(): ?string
6179
{
6280
}
6381
public function getRawFragment(): ?string
6482
{
6583
}
84+
public function withFragment(?string $fragment): static
85+
{
86+
}
6687
public function equals(\Uri\Rfc3986\Uri $uri, \Uri\UriComparisonMode $comparisonMode = \Uri\UriComparisonMode::ExcludeFragment): bool
6788
{
6889
}

stubs/ext/uri/Uri/WhatWg/Url.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,34 +40,39 @@ public function getAsciiHost(): ?string
4040
public function getUnicodeHost(): ?string
4141
{
4242
}
43+
/** @implementation-alias Uri\Rfc3986\Uri::withHost */
4344
public function withHost(?string $host): static
4445
{
4546
}
4647
/** @implementation-alias Uri\Rfc3986\Uri::getPort */
4748
public function getPort(): ?int
4849
{
4950
}
51+
/** @implementation-alias Uri\Rfc3986\Uri::withPort */
5052
public function withPort(?int $port): static
5153
{
5254
}
5355
/** @implementation-alias Uri\Rfc3986\Uri::getPath */
5456
public function getPath(): string
5557
{
5658
}
59+
/** @implementation-alias Uri\Rfc3986\Uri::withPath */
5760
public function withPath(string $path): static
5861
{
5962
}
6063
/** @implementation-alias Uri\Rfc3986\Uri::getQuery */
6164
public function getQuery(): ?string
6265
{
6366
}
67+
/** @implementation-alias Uri\Rfc3986\Uri::withQuery */
6468
public function withQuery(?string $query): static
6569
{
6670
}
6771
/** @implementation-alias Uri\Rfc3986\Uri::getFragment */
6872
public function getFragment(): ?string
6973
{
7074
}
75+
/** @implementation-alias Uri\Rfc3986\Uri::withFragment */
7176
public function withFragment(?string $fragment): static
7277
{
7378
}

0 commit comments

Comments
 (0)