Replies: 4 comments 10 replies
-
|
Hi, similar rules exist there as well. |
Beta Was this translation helpful? Give feedback.
-
|
Also there's similar rule in PHPUnit quality list |
Beta Was this translation helpful? Give feedback.
-
|
Hi @simPod and @TomasVotruba ! I was asking myself the same question while testing/integrating rector in my project. The doubt arise because when enabling "codeQuality: true" I expect to enable all rule which are known to improve code quality, but by reading the thread it seems to me that the real meaning is "all rules under code quality category", which may gives some mixed results. In my opinion, though, this rule is wrong by itself. Converting method will force PHP under the hood to pass in a |
Beta Was this translation helpful? Give feedback.
-
|
Well, it's just changed my perfectly good private static method into a non–static one. That made me think: hmm, interesting, I wonder why? How does that improve my code? Why would a non-static call be preferred over a static call? And actually… I still don't know :-] So I'm disabling it, unless someone can open my mind to the benefits… |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
LocallyCalledStaticMethodToNonStaticRector is in CodeQuality list.
I wonder what is the rationale behind it. Why is it considered to be of higher code quality?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions