[Symfony] Add MakeCommandLazyRector#1519
Conversation
stloyd
left a comment
There was a problem hiding this comment.
Overall looks great! Just some small changes needed :)
|
I see. So just remove the argument? |
|
If you find that call with parameter remove just the parameter and you will be safe ;) |
|
(@stloyd Sorry, I wanted to comment to reply you, but on mobile it dropped me somewhere else) |
67f1fc4 to
838ac18
Compare
stloyd
left a comment
There was a problem hiding this comment.
First tests are promising :)
5a31276 to
141eeb3
Compare
|
New update 👍 |
|
@TomasVotruba Works almost perfect! Just randomly (like one on 20/30) classes is not getting correct property being set: 325) src/Command/TestCommand.php
---------- begin diff ----------
--- Original
+++ New
@@ -16,9 +16,7 @@
{
protected function configure()
{
- $this
- ->setName('some:class:long-string-maybe-thats-the-reason-but-probably-not')
- ->setDescription('do something')
+ $this->setDescription('do something')Other than this random thing it looks you covered all our legacy cases 👍 🏆 |
|
@stloyd Thanks for deep testing! I think it will not be random. Do you mean it removes the Could you get me the minimal anonymized PHP code that has this error so I can fix it? |
36dd3c9 to
5ca2f56
Compare
|
@TomasVotruba Just check latest version against our legacy codebase with over 400 (don't ask 🤓 ) commands being properly adjusted 😃 🚀 |
5ca2f56 to
590c98c
Compare
|
The more code the bigger amount of work Rector saves 👍 Thanks for testig and feedback. I wouldn't think about those edge cases myself, as I'm biased in single (my :D) approach. |
|
Lets 🚢 it! |
rectorphp/rector-src@3ccc13f add test case with static on dynamic method (#1519)
Closes #1497
What do you think @stloyd ?