Skip to content

[ProxyManagerBridge] Remove the unused dependency on composer/package-versions-deprecated #44765

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

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

stof
Copy link
Member

@stof stof commented Dec 22, 2021

Q A
Branch? 4.4
Bug fix? yes/no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR n/a

The ProxyManagerBridge depends on friendsofphp/proxy-manager-lts which has an optional dependency on the PackageVersions class to implement the ProxyManager\Version::getVersion method on composer 1 (with a fallback to a less precise version number).
However, the bridge has stopped using that API in favor of feature detection (in #39017), so the dependency is unused.

This contributes to #44726

The ProxyManagerBridge depends on friendsofphp/proxy-manager-lts which
has an optional dependency on the PackageVersions class to implement the
`ProxyManager\Version::getVersion` method on composer 1 (with a fallback
to a less precise version number).
However, the bridge has stopped using that API in favor of feature
detection, so the dependency is unused.
@nicolas-grekas
Copy link
Member

Same in the root package isn't it?

@stof
Copy link
Member Author

stof commented Dec 22, 2021

No. the root package only has it as a require-dev, and this should be removed only after removing the dev requirement in doctrine-bridge (which won't be done in 4.4).

@nicolas-grekas
Copy link
Member

Can't we remove the package from require-dev also? Maybe by bumping the min version of some deps, if they remain compatible with PHP 7.1?

@nicolas-grekas
Copy link
Member

Maybe not on 4.4, but 5.3+? 6.0+?

@stof
Copy link
Member Author

stof commented Dec 22, 2021

@nicolas-grekas doing that in 5.x (either 5.3 or 5.4) is indeed the plan (see my comment on the RFC issue)

@nicolas-grekas
Copy link
Member

Thank you @stof.

@nicolas-grekas nicolas-grekas merged commit 9d9f27a into symfony:4.4 Dec 22, 2021
@nicolas-grekas
Copy link
Member

Can you please send a PR on 5.3?

@stof stof deleted the remove_unused_dependency branch December 22, 2021 18:32
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.

4 participants