Skip to content

inconsistent behavior on CountryRepository->get vs. SubdivisionRepository->get #229

@djkgamc

Description

@djkgamc

Country:

if (!isset($baseDefinitions[$countryCode])) {
  throw new UnknownCountryException($countryCode);
}

Subdivision

if (!isset($definitions['subdivisions'][$id])) {
  // No matching definition found.
  return null;
}

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