Page MenuHomePhabricator

phan and taint-check weird interactions: PhanUndeclaredThis, part 2
Closed, ResolvedPublic

Description

Almost the same as T249491. Examples:

includes/Title.php:1008 PhanUndeclaredThis Variable $this is undeclared
includes/config/ServiceOptions.php:88 PhanUndeclaredThis Variable $this is undeclared
includes/shell/Result.php:76 PhanUndeclaredThis Variable $this is undeclared

Event Timeline

A bit of investigation: this is very similar to T249491, in that the same code path is involved. This time, the problem is that we try to read the saved data before writing it. Also, the class must be namespaced for the issue to show up.

Change 587238 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/tools/phan/SecurityCheckPlugin@master] Fix bad interaction with phan, part 3

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

Change 587238 merged by jenkins-bot:
[mediawiki/tools/phan/SecurityCheckPlugin@master] Fix bad interaction with phan, part 3

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

Daimona removed a project: Patch-For-Review.