Skip to content

Commit

Permalink
Change array<int...> to list<...> in PHP doc
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Apr 18, 2024
1 parent facd9f9 commit c7c408f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function build(array $parts): string
* If there is no dirname, it will return an empty string. Any / appearing at
* the end of the string is stripped off.
*
* @return array<int, mixed>
* @return list<mixed>
*/
function split(string $path): array
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Uri/BuildTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testBuild(string $value): void
}

/**
* @return array<int, array<int, string>>
* @return list<list<string>>
*/
public function buildUriData(): array
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Uri/NormalizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testNormalize(string $in, string $out): void
}

/**
* @return array<int, array<int, string>>
* @return list<list<string>>
*/
public function normalizeData(): array
{
Expand Down
8 changes: 4 additions & 4 deletions tests/Uri/ParseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ParseTest extends TestCase
* @dataProvider parseData
* @dataProvider windowsFormatTestCases
*
* @param array<int, array<int, array<string, int|string|null>|string>> $out
* @param list<list<array<string, int|string|null>|string>> $out
*/
public function testParse(string $in, array $out): void
{
Expand All @@ -26,7 +26,7 @@ public function testParse(string $in, array $out): void
* @dataProvider parseData
* @dataProvider windowsFormatTestCases
*
* @param array<int, array<int, array<string, int|string|null>|string>> $out
* @param list<list<array<string, int|string|null>|string>> $out
*/
public function testParseFallback(string $in, array $out): void
{
Expand Down Expand Up @@ -56,7 +56,7 @@ public function testParseFallbackShouldThrowInvalidUriException(): void
}

/**
* @return array<int, array<int, array<string, int|string|null>|string>>
* @return list<list<array<string, int|string|null>|string>>
*/
public function parseData(): array
{
Expand Down Expand Up @@ -231,7 +231,7 @@ public function parseData(): array
}

/**
* @return array<int, array<int, array<string, int|string|null>|string>>
* @return list<list<array<string, int|string|null>|string>>
*/
public function windowsFormatTestCases(): array
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Uri/ResolveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testResolve(string $base, string $update, string $expected): voi
}

/**
* @return array<int, array<int, string>>
* @return list<list<string>>
*/
public function resolveData(): array
{
Expand Down

0 comments on commit c7c408f

Please sign in to comment.