Skip to content

v.2.0.0

Latest

Choose a tag to compare

@frostybee frostybee released this 16 Nov 17:25
· 1 commit to main since this release

Release v2.0.0

⚠️ Breaking Changes

  • Method renamed: is_coordinate() → isCoordinate()
  • Invalid units now throw InvalidUnitException instead of Exception

What's New:

  • ✅ Added strict types for better type safety
  • ✅ Fixed critical variable naming bug in distance calculation
  • ✅ Added 32 PHPUnit tests (all passing)
  • ✅ Improved code quality
  • ✅ Updated README with accurate documentation

Migration

// Old (v1.x)
$calculator->is_coordinate($lat, $lon);

// New (v2.0)
$calculator->isCoordinate($lat, $lon);