packagist meilisearch/meilisearch-php v2.0.0-beta.3
v2.0.0-beta.3 🌱

9 hours ago

Migration guide

🟢 Improved exception types DX (Impact: minor)

The custom $message property has been removed from custom exceptions. Use the getMessage() method instead:

try {
    // ...
} catch (\Meilisearch\Exceptions\ApiException $e) {
   // Before (v1.x)
    echo $e->message;
    // After (v2.x)
    echo $e->getMessage();
}

Also:

  • Exception classes are now final
  • Exception public properties are now read-only and strictly typed.
  • The rethrowWithHint static method now returns a \RuntimeException instead of a generic \Exception.

⚠️ Breaking changes

🚀 Enhancements

  • Update experimental Network API for Meilisearch v1.30 compatibility (#853) @Strift

⚙️ Maintenance/misc

Thanks to @Strift and @norkunas! 🎉

See full changelog: v2.0.0-beta.2...v2.0.0-beta.3

Don't miss a new meilisearch-php release

NewReleases is sending notifications on new releases.