From 9feb6bcb665031a1c564867a3a0fa1411c8caf15 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 5 Jul 2023 23:12:44 +0000 Subject: [PATCH] Fixed country name not having a value for XX or any other fallback. --- utility.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utility.php b/utility.php index 2d03633..7138443 100644 --- a/utility.php +++ b/utility.php @@ -318,5 +318,7 @@ function get_country_name(string $code): string { 'ZA' => 'South Africa', 'ZM' => 'Zambia', 'ZW' => 'Zimbabwe', + + default => 'Unknown', }; }