Page MenuHomePhabricator

Parsoid psr-4 warning in composer 1.10
Closed, ResolvedPublic

Description

Using composer 1.10

Deprecation Notice: Class Wikimedia\Parsoid\DataParsoid located in ./wikimedia/parsoid/src/placeholder/DataParsoid.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:185

Details

Event Timeline

Reedy renamed this task from Parsoid warning in composer 1.10 to Parsoid psr-4 warning in composer 1.10.Mar 10 2020, 8:55 PM

That's fine, it's just used for phan. But phan has a different mechanism for placeholders; we should be using that instead of abusing the psr-4 path.

@Reedy: It should live in .phan/stubs; hang on, patch incoming.

Change 578608 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] Move DataParsoid.php to .phan/stubs

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

Change 578608 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Move DataParsoid.php to .phan/stubs

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

Reedy assigned this task to cscott.