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

Forward compatibility for composer v2.3.6+ #51

Merged
merged 1 commit into from Jul 3, 2022

Conversation

boesing
Copy link
Member

@boesing boesing commented Jul 3, 2022

Q A
QA yes

Description

To avoid deprecation messages with composer v2.3.6 and above, we follow the deprecation messages suggestion and use RepositoryFactory#defaultReposWithDefaultManager instead of RepositoryFactory#defaultRepos.

fixes #47

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing added this to the 3.0.0 milestone Jul 3, 2022
@boesing boesing changed the base branch from 2.8.x to 3.0.x July 3, 2022 21:01
@Ocramius
Copy link
Member

Ocramius commented Jul 3, 2022

Would it make sense to declare ^2.4 compat when it's out? 🤔

@boesing
Copy link
Member Author

boesing commented Jul 3, 2022

Would it make sense to declare ^2.4 compat when it's out? 🤔

I was thinking about this as well. But since I know that in CI pipelines (even in ours) are not always the latest and greatest composer versions, this might be kinda annoying for some projects.
Since I do prefer not blocking too many projects from updating to the next major, I think its fine for now to use the method_exists check.

WDYT?

@Ocramius
Copy link
Member

Ocramius commented Jul 3, 2022

Works for me - dependency requirement can be bumped later.

@boesing boesing merged commit 9d70b71 into laminas:3.0.x Jul 3, 2022
@boesing boesing deleted the qa/forward-compatibility-composer branch July 3, 2022 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation Notice when using composer 2.3.6
2 participants