symfony/symfony — Issue #3110: Suggestion: deprecate variableNode and rename to anyNode
Author: drm
Created: 2012-01-13 14:17:10+00:00
State: open

VariableNode suggests that the contents of the node is *a* variable, in stead of that the content *is* variable. It took me some time to figure out that, semantically, the variableNode builder method and the related classes, actually mean "Don't care about the contents"-node.

I suggest deprecating variableNode in favor of anyNode which explains better what it is.

Disclaimer: I know that I should've started reading the docs in stead of browsing the code, but in my experience reading the code is a better exploratory experience. Let's say I couldn't think of any minorer issue to report on a friday afternoon ;)