Skip to content

Commit 6198e1d

Browse files
committed
[PHPDoc] Fix some union type cases
1 parent 50d7a1d commit 6198e1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static function create($address): self
106106
}
107107

108108
/**
109-
* @param (Address|string)[] $addresses
109+
* @param array<Address|string> $addresses
110110
*
111111
* @return Address[]
112112
*/

Header/Headers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getMaxLineLength(): int
5959
}
6060

6161
/**
62-
* @param (Address|string)[] $addresses
62+
* @param array<Address|string> $addresses
6363
*
6464
* @return $this
6565
*/

Part/Multipart/FormDataPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class FormDataPart extends AbstractMultipartPart
2626
private $fields = [];
2727

2828
/**
29-
* @param (string|array|DataPart)[] $fields
29+
* @param array<string|array|DataPart> $fields
3030
*/
3131
public function __construct(array $fields = [])
3232
{

0 commit comments

Comments
 (0)