Skip to content

Commit

Permalink
fix type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Feb 20, 2024
1 parent bceb324 commit 1320663
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Browser/Assertion/SameUrlAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@
*
* @internal
*
* @phpstan-type PartsToMatch array{
* scheme?: string,
* host?: string,
* port?: int<0,65535>,
* user?: string,
* pass?: string,
* path?: string,
* query?: string,
* fragment?: string,
* }
* @phpstan-type PartsToMatch list<"scheme"|"host"|"port"|"user"|"pass"|"path"|"query"|"fragment">
*/
final class SameUrlAssertion implements Negatable
{
Expand Down Expand Up @@ -78,7 +69,16 @@ private function context(): array
}

/**
* @return PartsToMatch
* @return array{
* scheme?: string,
* host?: string,
* port?: int<0,65535>,
* user?: string,
* pass?: string,
* path?: string,
* query?: string,
* fragment?: string,
* }
*/
private function parseUrl(string $url): array
{
Expand Down

0 comments on commit 1320663

Please sign in to comment.