It may cause a lot of deprecation warnings for users switching to PHP 7.2 as it is used in the Transport/Http class.
Should we try to upstream a patch to remove 7.2 deprecation warnings?
We could also try to see if we can use the Elastica extension itself to backport a fix there, Transport class can be extended IIRC.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
ruflin/elastica: Backport patch to stop using each() | mediawiki/vendor | master | +5 -2 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | EBernhardson | T183281 [epic] ELK upgrade to 6.x (elasticsearch, kibana, logstash) | |||
Resolved | None | T183282 [epic] Search cluster upgrade to 6.x | |||
Resolved | Reedy | T204884 Run MediaWiki tests on PHP 7.3 | |||
Resolved | Legoktm | T206899 CirrusSearch\Test\RequestLoggerTest::testRequestLogging fails on PHP 7.2 due to each() | |||
Resolved | Legoktm | T190024 Elastica 5.3 uses the each keyword which is deprecated in PHP 7.2 |
Event Timeline
Comment Actions
I'm certain upstream has already fixed this, just not in the versions we support. Elastica 6 supports php 7, but also requires elasticsearch 6. We could do some custom hacks locally until we are ready for 6?
Comment Actions
I'm certain upstream has already fixed this
Indeed: https://github.com/ruflin/Elastica/commit/4112024cb273e9f09d691b670f5de334a41db721
Comment Actions
Change 467079 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/vendor@master] ruflin/elastica: Backport patch to stop using each()
Comment Actions
Change 467079 merged by jenkins-bot:
[mediawiki/vendor@master] ruflin/elastica: Backport patch to stop using each()