How to find the fully qualified class name from 'self' => StaticCall node type #8134
Unanswered
clementbirkle
asked this question in
Q&A
Replies: 1 comment
-
|
I found a solution for this case like that: But I still have a problem in this case: In this case, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've come across this fascinating project and I'm currently in the process of crafting my inaugural custom rule. However, I've encountered a challenge when attempting to obtain the fully qualified class name.
I have a class like that:
I'm interested in applying a certain operation to
self::anotherMethod();.Here is my custom rule:
In my example, I expected to retrieve
Demofor my class name but instead I gotself.The 2 echo in my example return
self.Are you familiar with a potential solution to acquire the fully qualified class name in this particular scenario?
Beta Was this translation helpful? Give feedback.
All reactions