neos / rector

Neos Rector Recipes for code migrations
6 stars 4 forks source link

BUG: Rector migration for usage of `node.parent` doesn't work #29

Closed ahaeslich closed 1 year ago

ahaeslich commented 1 year ago
dlubitz commented 1 year ago

Good catch! Maybe someone of the experts can tell us what the correct replacement is? /cc @mhsdesign @mficzel @bwaidelich

mficzel commented 1 year ago

As I see from my cellphone flowQuery “parent”|”parents” is implemented. This migration might be not needed at all.

dlubitz commented 1 year ago

It's actually not FlowQuery it was the removed getter of the Node.

mficzel commented 1 year ago

How about converting that to q(node).parent().get(0)

kdambekalns commented 1 year ago

It still warns about q(node).parents()