Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: State::build() with states/divisions with a single character #51

Open
ALameLlama opened this issue Nov 24, 2022 · 1 comment
Open

Comments

@ALameLlama
Copy link

Describe the bug
Currently if you try to use State::Build() this will fail when the state/division has a single character. e.g. Bangladesh - Dhaka

To Reproduce
Steps to reproduce the behavior:

$country = 'BD';
$state = 'C';

$meta = State::build("{$country}-{$state}")->getMeta();

This will throw:
MenaraSolutions\Geographer\Exceptions\ObjectNotFoundException
Cannot find object with id BD-C

@ALameLlama
Copy link
Author

Hi @dusterio, Just wanted to make sure you've seen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant