Skip to content

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

@ALameLlama

Description

@ALameLlama

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions