Skip to content

Commit 6980636

Browse files
committed
Add types
1 parent 8e6dea0 commit 6980636

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Formatter/GBFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class GBFormatter implements CountryPostcodeFormatter
5151
*
5252
* @var string[]|null
5353
*/
54-
private $patterns = null;
54+
private ?array $patterns = null;
5555

5656
public function format(string $postcode) : ?string
5757
{

src/PostcodeFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PostcodeFormatter
1212
/**
1313
* The country postcode formatters, indexed by country code.
1414
*
15-
* @var (CountryPostcodeFormatter|null)[]
15+
* @var array<string, CountryPostcodeFormatter|null>
1616
*/
1717
private array $formatters = [];
1818

0 commit comments

Comments
 (0)