-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ final class Authority extends Part | |
{ | ||
private string $string; | ||
|
||
public function __construct(private Host $host, private ?string $username, private ?string $password, private ?int $port) | ||
public function __construct(private Part\Host $host, private ?string $username, private ?string $password, private ?int $port) | ||
{ | ||
} | ||
|
||
|
@@ -31,21 +31,21 @@ public function __clone() | |
unset($this->string); | ||
} | ||
|
||
public function host(): Host | ||
public function host(): Part\Host | ||
{ | ||
return $this->host; | ||
} | ||
|
||
/** | ||
* @return string|null "urldecoded" | ||
* @return Part\string|null "urldecoded" | ||
*/ | ||
public function username(): ?string | ||
Check failure on line 42 in src/Uri/Part/Authority.php GitHub Actions / sca / Static Code Analysis
Check failure on line 42 in src/Uri/Part/Authority.php GitHub Actions / sca / Static Code Analysis
|
||
{ | ||
return null !== $this->username ? \rawurldecode($this->username) : null; | ||
} | ||
|
||
/** | ||
* @return string|null "urldecoded" | ||
* @return Part\string|null "urldecoded" | ||
*/ | ||
public function password(): ?string | ||
Check failure on line 50 in src/Uri/Part/Authority.php GitHub Actions / sca / Static Code Analysis
Check failure on line 50 in src/Uri/Part/Authority.php GitHub Actions / sca / Static Code Analysis
|
||
{ | ||
|
@@ -75,7 +75,7 @@ public function userInfo(): ?string | |
public function withHost(?string $host): self | ||
{ | ||
$authority = clone $this; | ||
$authority->host = new Host($host); | ||
$authority->host = new Part\Host($host); | ||
|
||
if ($authority->host->isEmpty()) { | ||
$authority->username = null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
/** | ||
* @author Kevin Bond <[email protected]> | ||
*/ | ||
final class SignedUri extends WrappedUri | ||
final class SignedUri extends Uri\WrappedUri | ||
{ | ||
private function __construct(private Uri $uri, private ?\DateTimeImmutable $expiresAt, private bool $singleUse) | ||
{ | ||
|
@@ -32,7 +32,7 @@ public static function sign(string|Uri $uri, string|SymfonySigner $secret, ?\Dat | |
} | ||
|
||
/** | ||
* @param string|null $singleUseToken If passed, this value MUST change once the URL is considered "used" | ||
* @param Uri\string|null $singleUseToken If passed, this value MUST change once the URL is considered "used" | ||
* | ||
* @throws Expired if the URI has expired | ||
* @throws AlreadyUsed if the URI has already been used | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
/** | ||
* @author Kevin Bond <[email protected]> | ||
*/ | ||
abstract class WrappedUri extends BaseUri | ||
abstract class WrappedUri extends Uri\BaseUri | ||
{ | ||
final public function scheme(): Scheme | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters