TysonAndre / phan

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
Other
0 stars 0 forks source link

Create a way for an extension to register for an exact function or static/instance method match #44

Closed TysonAndre closed 6 years ago

TysonAndre commented 7 years ago

or property name

E.g. there may be a plugin which would only act on sprintf, or $exactVarName->method, or MyClass::errorlog, or Issue::maybeEmit (Fetch the type, check if the format string is being used with the correct arg count)

If there is more than one of those, it would be faster and involve less boilerplate to have a single plugin which would check for those cases, and dispatch it to that plugin if needed

TysonAndre commented 6 years ago

The config plugin set does this and adds those to function/methods