Skip to content

Constants::getPassByReferenceFunctions(): contains methods #156

Description

@jrfnl

The array in Constants::getPassByReferenceFunctions() includes a number of methods, but no indication that:

  1. These are methods and should only be recognized as the function when called as a method.
  2. What class these methods come from.

This means that, for example, if someone would currently define a global function addTask() which doesn't use pass by reference, the sniff may have a false negative as parameter 3 would not be checked.

The same goes, of course, for userland classes defining a function of the same name as one of these, as well as namespaced functions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions