Phpdoc api
#6097
Replies: 1 comment 2 replies
-
Hi, thanks for feedback 👍 This is using original https://github.com/phpstan/phpdoc-parser/blob/master/src/Ast/PhpDoc/VarTagValueNode.php, so your way is correct. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the new phpdoc ast api in a new custom rector rule. This is a really great thing and an perfect step forwards <3
i have code like
I am wondering whether there is a cleaner way instead of doing this string comparisions, when iterating var-tags?
So what I dont like is the
$varTagValue->variableName == '$' . $variableName
thing.did I miss something?
the complete code can be found at https://github.com/staabm/rector-view-scope/blob/8fdb9c3edb025f2fe1b807f6202871b2d9305791/lib/ViewScopeRector.php#L66
Beta Was this translation helpful? Give feedback.
All reactions