Page MenuHomePhabricator

Update PHPat to the latest version
Closed, ResolvedPublic5 Estimated Story Points

Description

We're currently using 0.11.x in Wikibase, and at the time of writing this the latest version is 0.12.4. The rule syntax seems to have change a bit in 0.12 so we should update our tests to use that.

phpat and phpstan libraries should be updated to the latest version in Wikibase and WikibaseLexeme. There will likely be breaking changes due to the deprecation of assertions currently used in architecture tests.

WikibaseLexeme requires Wikibase to be updated first (NamedDeclaration error if WikibaseLexeme updated first).

https://github.com/carlosas/phpat

Event Timeline

Silvan_WMDE set the point value for this task to 5.Jul 28 2026, 12:22 PM
Silvan_WMDE moved this task from Polished to Ready for planning on the Wikibase Reuse Team board.

Change #1324698 had a related patch set uploaded (by Kim.pham; author: Kim.pham):

[mediawiki/extensions/Wikibase@master] Update PHPat version

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

Change #1324708 had a related patch set uploaded (by Kim.pham; author: Kim.pham):

[mediawiki/extensions/WikibaseLexeme@master] Update PHPat to latest version

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

Change #1324698 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Update PHPat version

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

Change #1324708 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Update PHPat to latest version

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