Closed martinssipenko closed 3 years ago
I don't see how this is an issue. PHP 8 users can just not use that version?
I do agree it's not really an issue. I do get deprecation warnings when using this lib on php8 with --prefer-lowest
, so I somewhat feel that, while it is just a deprecation notice and the package is php8 compatible, it's could drop support for Symfony 2.
Even if 2.x were dropped, you;d still have that issue, since the 3.x version you;d get would exibit the issue.
The real issue here is that Symfony refuses to use upper bounds on their php versions, which means that prefer-lowest on super new php versions picks up packages that should never have been marked as compatible.
NB Symfony have their reasons for this, but this is the main side affect of that choice.
I think it was fixed in 3.4.43
, wouldn't setting that as minimum (and dropping 2.x) fix this?
the lowest versions is about providing something that works together for legacy systems. i would not drop a lowest version because it uses a deprecated method of another component.
my assumption is that most people either install the latest versions, or they don't upgrade their core parts for reasons but are glad to be able to add something to php-http (or also during a refactoring to allow to later upgrade).
if lowest would end up triggering an error because one component ends up being a new version that removed a deprecated method, i could see bumping the version of our requirements, but warnings are not errors and nothing is wrong with a legacy application calling deprecated methods.
Description Are there any plans to drop support for Symfony 2, which is no longer maintained?
Additional context
I'm currently facing some issues with PHP8 as this package allows
symfony/options-resolver
as low as2.6
which uses deprecatedReflectionParameter::getClass()
method. This was fixed in supported versions3.4.43
,4.4.9
,5.1.0
.