Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/MooseX/Storage/Engine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ sub find_type_handler {
my %seen;
my @fallback = grep { !$seen{$_}++ } qw/Int Num Str Value/, keys %TYPES;
foreach my $type ( @fallback ) {
return $TYPES{$type}
if $type_constraint->is_subtype_of($type);
if ($type_constraint->is_subtype_of($type)) {
$TYPES{$type_constraint->name} = $TYPES{$type};
return $TYPES{$type};
}
}

# NOTE: the reason the above will work has to do with the fact that custom
Expand Down