Page MenuHomePhabricator

phan-taint-check sometimes can't tell that the third arg to a tag hook is a Parser object unless there is a type hint
Closed, ResolvedPublic

Description

In particular see I18nTags f0388c9b03f9

It seems like since nothing actually calls the parser tag hook, phan doesn't have info on what the args are unless there are type hints. This can result in it not knowing what calls to $parser->recursiveTagParse() do.

Event Timeline

Change 457953 had a related patch set uploaded (by Brian Wolff; owner: Brian Wolff):
[mediawiki/tools/phan/SecurityCheckPlugin@master] Make parser hooks work properly even without type hints

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

Change 457953 merged by jenkins-bot:
[mediawiki/tools/phan/SecurityCheckPlugin@master] Make parser hooks work properly even without type hints

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

Bawolff claimed this task.
sbassett triaged this task as Medium priority.Oct 15 2019, 7:23 PM