Open cashlo opened 6 years ago
Got bitten by this too:
my $branch = $type eq 'delete' ? $change->{old}->{name} : $change->{new}->{name};
Stumbled upon this too, my testcase:
my $json;
exit if $json->{foo} eq 'delete' and exists $json->{bar};
Here's some examples:
and the outpout:
It seems to me some conditions need to be added around here ( https://github.com/guillaumeaubert/Perl-Critic-Policy-ValuesAndExpressions-PreventSQLInjection/blob/master/lib/Perl/Critic/Policy/ValuesAndExpressions/PreventSQLInjection.pm#L398 ) for these operators?