Skip to content

.function_indexes does not detect all functions #230

@vStone

Description

@vStone

.function_indexes only supports a very limited set of functions in specific cases.
It should contain all possible functions in a manifest.

Version: 4.2.4

Example code:

class foobar {
  $x = function_assign_to_var('foobar')
  $y = 'foobar'.function_assign_inline_no_parenthesis
  $z = 'foobar'.function_assign_inline_with_args('arg2')
  function_call_with_args('xxx') # detected
  function_call_parent(function_call_nested('x')) # both functions are detected.
  chain.multiple().calls('to').functions
}

.function_indexes only contains 3 functions (see comments)

It should contain

  • function_assign_to_var
  • function_assign_inline_no_parenthesis
  • function_assign_inline_with_args
  • function_call_with_args
  • function_call_parent
  • function_call_nested
  • chain
  • multiple
  • calls
  • functions

It also seems that there are no tests for function_indexes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions