Screen file command improvements#2159
Conversation
db371ec to
4f86663
Compare
|
cc @DaveLiddament @gnutix What is missing to be useful here? |
|
Are comments / docblocks "explained" too ? |
|
Could you show me some example what would help you? |
|
Hmm.. maybe I spoke too soon. Regarding the type of information that this command provides, I'm not sure it could/should say anything about comments. Is the purpose of this command solely to help people code/contribute Rectors ? If so, I think it might help if the command returned code examples on how to check for these types or fetch some information (like how to get data for a Node, or how to get a comment/docblock, stuff like that). But maybe that's too much and not the scope of this PR (and I guess most of this is related to Nikic PHP Parser right ? so maybe a link to https://github.com/nikic/PHP-Parser#documentation might "just work" as well ? |
Yes! We used it at workshop, so people don't have to learn/remember how php-parser, PHPStan and Rector works (way too much info for anyone). And it was great, saved use like 40 minutes of talking about (booring) theory. You just run the command, look at the line you want to change and see it's
At the moment simple |
|
This is definitely a very nice first step indeed. I guess we'll see down the road if there are more improvements that could be done. Dumping a $node for example provides quite a huuuuuuge tree of information, most of them probably never useful to write a simple check or change. But let's start with that already. :) |
Agreed, I'll put it out on trainings and start to collect feedback what is relevant and what not.
Agreed, thinking of that, there might be useful function Thanks for feedback |
6dc3444 to
20921ae
Compare
Input file
Output helper