Page MenuHomePhabricator

PageForms: mwext-phan-php83 fails in PF_RunQuery with PhanImpossibleTypeComparison
Closed, ResolvedPublicBUG REPORT

Description

What happens?:

While testing an unrelated PageForms change, CI fails first in mwext-phan-php83 because of an existing Phan error in PF_RunQuery.php.

The failing message is:

specials/PF_RunQuery.php:106 PhanImpossibleTypeComparison Impossible attempt to check if PFUtils::getParser()->getOutput() of type \MediaWiki\Parser\ParserOutput is identical to null of type null

What should have happened instead?:

mwext-phan-php83 should not fail on this existing check in PF_RunQuery.php, so unrelated patches can be tested normally.

Event Timeline

Change #1249301 had a related patch set uploaded (by Dumbledore; author: Dumbledore):

[mediawiki/extensions/PageForms@master] Avoid Phan impossible null check in PF_RunQuery

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

@Yaron_Koren, how do we fix this so we don't have the null check? I saw this as a TODO comment, but I no longer see it.

I think this will help greatly.

Oh, I missed this. This was fixed in 212dc24631b6. It can truly fixed once Page Forms stops supporting MediaWiki versions below 1.43.

Change #1249301 abandoned by Dumbledore:

[mediawiki/extensions/PageForms@master] Avoid Phan impossible null check in PF_RunQuery

Reason:

Already fixed in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageForms/+/1249343

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