From: Dave Rolsky Date: Thu, 15 Nov 2007 18:19:04 +0000 (+0000) Subject: Sort list of bad params for consistency X-Git-Tag: 0.02~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d692165d16e2e1b9676282d14854275082f930a4;p=gitmo%2FMooseX-StrictConstructor.git Sort list of bad params for consistency --- diff --git a/lib/MooseX/Object/StrictConstructor.pm b/lib/MooseX/Object/StrictConstructor.pm index c21a667..0d3821d 100644 --- a/lib/MooseX/Object/StrictConstructor.pm +++ b/lib/MooseX/Object/StrictConstructor.pm @@ -16,7 +16,7 @@ after 'BUILDALL' => sub my %attrs = map { $_->name() => 1 } $self->meta()->compute_all_applicable_attributes(); - my @bad = grep { ! $attrs{$_} } keys %{ $params }; + my @bad = sort grep { ! $attrs{$_} } keys %{ $params }; if (@bad) {