Page MenuHomePhabricator

Package phpunit/php-token-stream is abandoned
Closed, ResolvedPublic

Description

When running composer update on the HEAD version of MediaWiki core (94248e6373e57f4564bf7ed616e3a1e71c3ed58c) I got this warning:

Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.

See P12493 for more details

Event Timeline

It's due to our version of phpunit/php-code-coverage, which is due to using phpunit 8.5 still...

https://packagist.org/packages/phpunit/phpunit

That requires phpunit/php-code-coverage: ^7.0.10... But we need to upgrade to phpunit ^9.0 to support a new enough version of php-code-coverage which doesn't need phpunit/php-token-stream

While we don't have a task to upgrade to PHPUnit 9, we do have T243600: Migrate MediaWiki core (and thus extensions and skins) to PHPUnit 9

But we can't do that anyway until we drop PHP 7.2 support in MW master, which is T261872: Drop PHP 7.2 & 7.3 support from MediaWiki master branch, once Wikimedia production is on 7.4 which is blocked on T245757: Upgrade MediaWiki clusters to Debian Buster (debian 10)...

Reedy triaged this task as Lowest priority.Sep 4 2020, 7:32 PM

And as it's a dev dependancy anyway...

Change 674851 had a related patch set uploaded (by Jforrester; author: Daimona Eaytoy):

[mediawiki/core@master] tests: Upgrde PHPUnit from 8.5+ to 9.5+

https://gerrit.wikimedia.org/r/674851

Daimona changed the task status from Stalled to Open.Oct 8 2022, 12:14 AM

Change 674851 merged by jenkins-bot:

[mediawiki/core@master] tests: Upgrade PHPUnit from 8.5+ to 9.5+

https://gerrit.wikimedia.org/r/674851

Change 921152 had a related patch set uploaded (by Jforrester; author: Daimona Eaytoy):

[mediawiki/core@REL1_39] tests: Upgrade PHPUnit from 8.5+ to 9.5+

https://gerrit.wikimedia.org/r/921152

Change 921152 abandoned by Jforrester:

[mediawiki/core@REL1_39] tests: Upgrade PHPUnit from 8.5+ to 9.5.28

Reason:

https://gerrit.wikimedia.org/r/921152