Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.function_indexes does not detect all functions #230

Open
vStone opened this issue Feb 4, 2025 · 0 comments
Open

.function_indexes does not detect all functions #230

vStone opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@vStone
Copy link

vStone commented Feb 4, 2025

.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.

@vStone vStone added the bug Something isn't working label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant