Detect methods called statically within class #9607
Unanswered
clickedu-jbergada
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
what rule you're running?, and what before vs after expected? could you give https://getrector.com/demo example? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I am trying to do this: https://getrector.com/demo/3d0dea93-ce36-4f8f-8200-f13920623cff and as you can see it does nothing. But this works: https://getrector.com/demo/d774b2d0-f38d-420c-98e7-a28185f7c863 i expected the same behaviour since both give a fatal error in PHP 8.0 |
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.
-
Hi, I cannot manage to correct this code from
to
The line self::a(); gets detected correctly when the 2 methods are in different classes but it does not happen when they are in the same class. This uncorrected code raises a fatal error on PHP 8.0.
Beta Was this translation helpful? Give feedback.
All reactions