How to get template type of parent generic in rule #4669
MartinMystikJonas
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing custom Rule and I need to pointer to some example how can I get generic templte type when analyzing method call in child. My rule matches method call doSomething in Bar, it resolves called on type of $this, and now to perform needed check (in my case I need to check that $param contains valid name of property present in Thing) I need to deduce from $this type that template T defined on Something is specified as type Thing. Thanks fo any hint.
Beta Was this translation helpful? Give feedback.
All reactions