Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Define conflict with meilisearch-php 0.26.1 #689

Closed
wants to merge 1 commit into from

Conversation

n8man
Copy link

@n8man n8man commented Jan 5, 2023

MeiliSearch\MeiliSearch class is not found when installing latest meilisearch-php (0.26.1) and latest scout (0.97)

meilisearch/meilisearch-php 0.26.1 renamed its base namespace from MeiliSearch to Meilisearch but also renamed the class MeiliSearch\MeiliSearch class to Meilisearch\Meilisearch, which breaks compatibility with Scout due to Composer class autoloading being case-sensitive.a

This PR updates the Composer configuration to define a conflict with meilisearch-php >= 0.26.1

I also have a PR on meilisearch-php (meilisearch/meilisearch-php#441) that would reverse the renaming of the class.

I can see that @mmachatschek added some conditional class_exists() calls to work around (#687), but maybe for the time being we should wait to see what is happening with meilisearch-php. I'd be less concerned if meilisearch-php's breaking change had taken place during a transition to v1.0 instead of v0.26.0 -> v0.26.1. That was just weird.

meilisearch-php 0.26.1 uses a renamed namespace and a renamed Meilisearch\Meiliserach class which break compatilility with Scout
@n8man n8man changed the title Fix MeiliSearch\MeiliSearch not found - Define conflict with meilisearch-php 0.26.1 [9.x] Define conflict with meilisearch-php 0.26.1 Jan 5, 2023
@driesvints
Copy link
Member

Thanks but let's just go for @mmachatschek's PR. I'll do a new release so you're unblocked.

@driesvints driesvints closed this Jan 6, 2023
@driesvints
Copy link
Member

Released v9.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants