grom358 / pharborist

A PHP library to query and transform source code via tree operations.
GNU General Public License v3.0
44 stars 10 forks source link

ParameterNode::getReference() is useless #223

Closed phenaproxima closed 9 years ago

phenaproxima commented 9 years ago

I'm not sure why we bother having this method -- it either returns an ampersand token node, or NULL. Shouldn't this just be isReference(), and return a boolean?

grom358 commented 9 years ago

Added isReference to ParameterNode. Left getReference there.