Skip to content

Commit 8ef37e5

Browse files
committed
Clean up Psalm-specific annotations
These are now correctly understood at least by Psalm, PHPStan, PhpStorm.
1 parent 16a9aa3 commit 8ef37e5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Formatter/GBFormatter.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ final class GBFormatter implements CountryPostcodeFormatter
5050
/**
5151
* The regular expression patterns, or null if not built yet.
5252
*
53-
* @psalm-var non-empty-string[]|null
54-
* @var string[]|null
53+
* @var non-empty-string[]|null
5554
*/
5655
private ?array $patterns = null;
5756

@@ -87,9 +86,7 @@ public function format(string $postcode): ?string
8786
* - The area code (ex: WC) for additional checks
8887
* - The inward code (e.g. 9RZ) for formatting
8988
*
90-
* @return string[]
91-
*
92-
* @psalm-return non-empty-string[]
89+
* @return non-empty-string[]
9390
*/
9491
private function getPatterns(): array
9592
{

0 commit comments

Comments
 (0)