From 7ae44b13af9c03c04f5b0bb0842b9fb6a1888310 Mon Sep 17 00:00:00 2001 From: Ryan Davies Date: Wed, 21 Dec 2022 15:04:24 +0000 Subject: [PATCH] Allow null names --- src/CountryFlag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CountryFlag.php b/src/CountryFlag.php index 4ef82b5..4ea679d 100644 --- a/src/CountryFlag.php +++ b/src/CountryFlag.php @@ -27,10 +27,10 @@ public function withCode(string $countryCode) /** * Set the country name. * - * @param string $countryName + * @param string|null $countryName * @return $this */ - public function withName(string $countryName) + public function withName(string|null $countryName) { return $this->withMeta(['countryName' => $countryName]); }