Grinnz / Perl-Critic-Community

Perl::Critic::Community - Community-inspired Perl::Critic policies
https://metacpan.org/pod/Perl::Critic::Community
Other
8 stars 10 forks source link

False positive in DeprecatedFeatures for autoderef #30

Closed Grinnz closed 5 years ago

Grinnz commented 6 years ago

As found in https://perlmonks.org/?node_id=1223518

$Person->shift( $foo );

results in the violation:

autoderef is deprecated at line 1, column 10.  Use of each/keys/pop/push/shift/splice/unshift/values on a reference is an experimental feature that is removed in perl v5.24.0. Dereference the array or hash to use these functions on it.  (Severity: 4)