Skip to content

Commit

Permalink
Merge 6e4710b into e19ae20
Browse files Browse the repository at this point in the history
  • Loading branch information
Grinnz committed Oct 6, 2016
2 parents e19ae20 + 6e4710b commit cf84b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Class/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ sub get_all_attribute_defaults_for {
my ( $class, $pkg ) = @_;
my $defaults = {};
for my $p ( reverse @{ mro::get_linear_isa($pkg) } ) {
while ( my ( $k, $v ) = each %{ $CLASS_ATTRIBUTES{$p} || {} } ) {
$defaults->{$k} = $v;
for my $k ( keys %{ $CLASS_ATTRIBUTES{$p} || {} } ) {
$defaults->{$k} = $CLASS_ATTRIBUTES{$p}{$k};
}
}
return $defaults;
Expand Down

0 comments on commit cf84b35

Please sign in to comment.