Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 28379
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: martin [...] hybyte.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: one-arg-bless with 2 args in parens
Date: Thu, 19 Jul 2007 13:49:02 +0100
To: bug-Perl-Critic [...] rt.cpan.org
From: Martin Friebe <martin [...] hybyte.com>
bless ({key => 'foo'}, $class); is incorrectly reported as one arg bless. I kow that it is in violence with builtin-no-parens, but that shouldn't affect the one arg bless test Perl v5.8.8 Freebsd 5.5 Perl::Critic Version 1.051 from ports Otherwise thanks for the great module Martin
This is due to a bug in the way PPI parses anonymous hash constructors. It is fixed in the latest development release of PPI. Feel free to pester Adam to make an official release.
From: cpan [...] chrisdolan.net
On Thu Sep 20 02:58:16 2007, THALJEF wrote: Show quoted text
> This is due to a bug in the way PPI parses anonymous hash constructors. > It is fixed in the latest development release of PPI. Feel free to > pester Adam to make an official release. >
And tell him to give me back my commit bit while you're at it! I've got a half-dozen changes waiting to commit from as long as 4 months ago. Chris
PPI 1.2X is now on CPAN, so I'm marking this ticket as "resolved."