Skip to content

Commit

Permalink
Allow null names
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanito committed Dec 21, 2022
1 parent afdb60b commit 7ae44b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CountryFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 7ae44b1

Please sign in to comment.