We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f776efa commit 66bce47Copy full SHA for 66bce47
lib/PPI/Tokenizer.pm
@@ -833,7 +833,7 @@ sub __current_token_is_forced_word {
833
# We also have to make sure that the sub/package/etc doing the forcing
834
# is not a method call.
835
if( $USUALLY_FORCES{$content}) {
836
- return if $word =~ /^v[0-9]+$/ and ( $content eq "use" or $content eq "no" );
+ return if defined $word and $word =~ /^v[0-9]+$/ and ( $content eq "use" or $content eq "no" );
837
return 1 if not $prevprev;
838
return 1 if not $USUALLY_FORCES{$prevprev->content} and $prevprev->content ne '->';
839
return;
0 commit comments