forked from joernio/joern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[php2cpg] Resolve static method call name when called by self (joerni…
…o#3736) When a static method call is made by referring to `self`, the AST node created for it failed to resolve the proper method full name. For example: ``` <?php class Foo { static function bar($x) { return 0; } function baz($x) { self::bar($x); } } ``` The method full name of the call node for `self::bar($x)` is `self::bar`, but it should be `Foo::bar`. This PR resolves the method full name of functions called by `self`.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters