File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ final class Guards
1919 * Assert that input is not an empty string.
2020 *
2121 * @phpstan-param mixed $name
22+ *
2223 * @phpstan-assert string $name
2324 *
2425 * @throws DomainException if input is an empty string
@@ -38,6 +39,7 @@ public static function guardAgainstInvalidName($name): void
3839 * Assert that input looks like an alpha2 key.
3940 *
4041 * @phpstan-param mixed $alpha2
42+ *
4143 * @phpstan-assert string $alpha2
4244 *
4345 * @throws DomainException if input does not look like an alpha2 key
@@ -57,6 +59,7 @@ public static function guardAgainstInvalidAlpha2($alpha2): void
5759 * Assert that input looks like an alpha3 key.
5860 *
5961 * @phpstan-param mixed $alpha3
62+ *
6063 * @phpstan-assert string $alpha3
6164 *
6265 * @throws DomainException if input does not look like an alpha3 key
@@ -76,6 +79,7 @@ public static function guardAgainstInvalidAlpha3($alpha3): void
7679 * Assert that input looks like a numeric key.
7780 *
7881 * @phpstan-param mixed $numeric
82+ *
7983 * @phpstan-assert string $numeric
8084 *
8185 * @throws DomainException if input does not look like a numeric key
You can’t perform that action at this time.
0 commit comments