Skip to content

Commit 43a3b3b

Browse files
committed
Merge remote branch 'zoffix/fix/RT90667/Moose-enum'
* zoffix/fix/RT90667/Moose-enum: Fixed RT#90667
2 parents 55cd202 + 17e4c71 commit 43a3b3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Git/PurePerl/NewObject.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use MooseX::StrictConstructor;
44
use Moose::Util::TypeConstraints;
55
use namespace::autoclean;
66

7-
enum 'ObjectKind' => qw(commit tree blob tag);
7+
enum 'ObjectKind' => [qw(commit tree blob tag)];
88

99
has 'kind' => ( is => 'ro', isa => 'ObjectKind', required => 1 );
1010
has 'size' => ( is => 'ro', isa => 'Int', required => 0, lazy_build => 1 );

lib/Git/PurePerl/Object.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use MooseX::StrictConstructor;
44
use Moose::Util::TypeConstraints;
55
use namespace::autoclean;
66

7-
enum 'ObjectKind' => qw(commit tree blob tag);
7+
enum 'ObjectKind' => [qw(commit tree blob tag)];
88

99
has 'kind' => ( is => 'ro', isa => 'ObjectKind', required => 1 );
1010
has 'size' => ( is => 'ro', isa => 'Int', required => 1 );

0 commit comments

Comments
 (0)