Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 May 15:23
· 10 commits to refs/heads/main since this release
9ea3da5

Breaking Changes

Public

  • The signature of getByZipcode() changed. The method now returns an array of possible Cantons instead of the first Canton that matched. (Some zipcodes can belong to multiple cantons. For example 1290)
  • A new getByZipcodeAndCity() method has been added that accepts a zipcode and optionally a city name to drill down the search further.

Internal

  • ZipcodeSearch-class has been renamed to CitySearch
  • zipcodes.json has been renamed to cities.json

Added

  • Update cities.json dataset (#47)
  • Handle multiple cities and cantons per zipcode (#47)

Changed

  • Replace Psalm with Phpstan (#45)