Skip to content

Commit

Permalink
yeah I should have tested that
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed Dec 27, 2024
1 parent 58ed4ec commit 9ca3bc0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sub violates {
my $subs = $elem->find('PPI::Statement::Sub') || [];
foreach my $sub (@$subs) {
next unless( $PPI::Document::VERSION > 1.279 ?
@{$sub->find('PPI::Structure::Signature')} : defined $sub->prototype );
@{$sub->find('PPI::Structure::Signature') || []} : defined $sub->prototype );

foreach my $symbol ( _recurse($sub->schildren) ) {
push @violations, $self->violation(DESC, EXPL, $symbol);
Expand Down

0 comments on commit 9ca3bc0

Please sign in to comment.