Perl-Critic / PPI

53 stars 44 forks source link

PPI::Token::Attribute::parameters does not behave as documented #116

Closed moregan closed 9 years ago

moregan commented 9 years ago

In 1.220, PPI::Token::Attribute::parameters does not behave as documented:

The C<parameters> method returns the parameter string for the attribute.

That is, for the attribute C<foo(bar)>, the C<parameters> method would
return C<"bar">.

Returns the parameters as a string (including the null string C<''> for
the case of an attribute such as C<foo()>.)

Returns C<undef> if the attribute does not have parameters.

parameters returns undef for foo(), rather than '' as promised.