Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change array<int...> to list<...> in PHP doc #103

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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