Fix: Make country name filter failure tolerant
This commit is contained in:
@@ -32,8 +32,12 @@ class CountryDataProvider
|
||||
return $countries;
|
||||
}
|
||||
|
||||
public function get(string $token): ?Country
|
||||
public function get(?string $token): ?Country
|
||||
{
|
||||
if (null === $token) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->getAll()[$token] ?? null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user