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

Feature request: visualize static and instance methods differently #223

Open
ilnytskyi opened this issue Sep 30, 2023 · 0 comments
Open

Comments

@ilnytskyi
Copy link
Contributor

ilnytskyi commented Sep 30, 2023

Now all method are visualized like this

My\Package\Namespace\Class::methodCall

However with this approach it's not clear whether method is static or not, without digging into codebase.
Some apps prefer using DI and composition (more instance methods usage) while other static methods (like in Laravel), some apps might mix both.

It might be helpful for reverse engineering or debugging to see if there are static methods among others. That might help to identify dependencies faster or places with increased memory consumption in long running processes.

Although in most places in the php and documentations both methods are referenced via ::

We could visualize methods like this

My\Package\Namespace\Class::methodStaticCall
My\Package\Namespace\Class->methodInstanceCall

or with prefixes or any other suitable approach

S My\Package\Namespace\Class::methodStaticCall
I My\Package\Namespace\Class::methodInstanceCall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants