We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6dea0 commit 6980636Copy full SHA for 6980636
2 files changed
src/Formatter/GBFormatter.php
@@ -51,7 +51,7 @@ class GBFormatter implements CountryPostcodeFormatter
51
*
52
* @var string[]|null
53
*/
54
- private $patterns = null;
+ private ?array $patterns = null;
55
56
public function format(string $postcode) : ?string
57
{
src/PostcodeFormatter.php
@@ -12,7 +12,7 @@ class PostcodeFormatter
12
/**
13
* The country postcode formatters, indexed by country code.
14
15
- * @var (CountryPostcodeFormatter|null)[]
+ * @var array<string, CountryPostcodeFormatter|null>
16
17
private array $formatters = [];
18
0 commit comments