You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When drafting a Perl::Critic policy to forbid @_ and @ARG in subroutines with signatures, it would be helpful (though obviously not essential) to have PPI::Statement::Sub->signature(). I believe that (unlike PPI::Statement::Sub->prototype()) it should return the actual PPI::Statement::Signature object if it exists, rather than just the content of the object. But my use case just needs to know whether the subroutine has a signature, so any return whose Boolean value contains this information works for me.
I am willing to do a pull request for any such functionality that we can agree on.
The text was updated successfully, but these errors were encountered:
When drafting a
Perl::Critic
policy to forbid@_
and@ARG
in subroutines with signatures, it would be helpful (though obviously not essential) to havePPI::Statement::Sub->signature()
. I believe that (unlikePPI::Statement::Sub->prototype()
) it should return the actualPPI::Statement::Signature
object if it exists, rather than just the content of the object. But my use case just needs to know whether the subroutine has a signature, so any return whose Boolean value contains this information works for me.I am willing to do a pull request for any such functionality that we can agree on.
The text was updated successfully, but these errors were encountered: