diff --git a/src/Countries.php b/src/Countries.php index 9483323..22e6be6 100644 --- a/src/Countries.php +++ b/src/Countries.php @@ -32,6 +32,7 @@ public function all() public function getByName(string $name, string $separator=',') { + $result = []; $countries_name = explode($separator, $name); $countries_name = array_map('trim', $countries_name); foreach ($this->all() as $country) {