Skip to content

Commit

Permalink
Update Country.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OzanKurt committed Sep 17, 2022
1 parent ebefbad commit 0e4d959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ class Country extends Intl
/**
* Get a localized record by key.
*/
public function get(string $key): string
public function get(string $key): ?string
{
return Arr::get($this->all(), $key);
}

/**
* Alias of get().
*/
public function name(string $key): string
public function name(string $key): ?string
{
return $this->get($key);
}
Expand Down

0 comments on commit 0e4d959

Please sign in to comment.