Page MenuHomePhabricator

Make AutoLoader::$psr4Namespaces private
Closed, ResolvedPublic

Description

	/**
	 * @var string[] Namespace (ends with \) => Path (ends with /)
	 * @internal Will become private in 1.40.
	 */
	public static $psr4Namespaces = self::CORE_NAMESPACES;

We should either make this private (I think it's good, no usages outside this class), or at least update the version it will be made private...

Event Timeline

Change 902459 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] AutoLoader: Make $psr4Namespaces private

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

Change 902375 had a related patch set uploaded (by Krinkle; author: Reedy):

[mediawiki/core@REL1_40] AutoLoader: Make $psr4Namespaces private

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

Change 902375 merged by jenkins-bot:

[mediawiki/core@REL1_40] AutoLoader: Make $psr4Namespaces private

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

Change 902459 merged by jenkins-bot:

[mediawiki/core@master] AutoLoader: Make $psr4Namespaces private

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

This will break everyone's developer setup of Parsoid, since the recommended way used this property until recently. It broke Patch Demo: https://github.com/MatmaRex/patchdemo/issues/544. You'll get an error like "Fatal error: Uncaught Error: Cannot access private property AutoLoader::$psr4Namespaces". Maybe it'd be nice to deprecate it first… Failing that, I hope people will find this ticket.

Apparently the new way is AutoLoader::registerNamespaces(): https://www.mediawiki.org/w/index.php?title=Parsoid&diff=prev&oldid=5222750

It also broke CI for Parsoid itself. https://gerrit.wikimedia.org/r/c/integration/quibble/+/902517 will fix that, once a new release of CI is made and pushed out.

Change 902603 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] Revert "AutoLoader: Make $psr4Namespaces private"

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

Change 902603 merged by jenkins-bot:

[mediawiki/core@master] Revert "AutoLoader: Make $psr4Namespaces private"

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

Change 902729 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] Reinstate "AutoLoader: Make $psr4Namespaces private"

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

Change 904867 had a related patch set uploaded (by Hashar; author: Krinkle):

[integration/quibble@master] release: Quibble 1.5.4

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

Change 905167 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] dockerfiles: update to Quibble 1.5.4

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

Change 904867 merged by jenkins-bot:

[integration/quibble@master] release: Quibble 1.5.4

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

Change 905167 merged by jenkins-bot:

[integration/config@master] dockerfiles: update to Quibble 1.5.4

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

Change 905190 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: update Quibble jobs to 1.5.4

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

Change 905190 merged by jenkins-bot:

[integration/config@master] jjb: update Quibble jobs to 1.5.4

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

Change 902729 merged by jenkins-bot:

[mediawiki/core@master] AutoLoader: Make $psr4Namespaces private (reinstated)

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

Reedy claimed this task.