bump version to 1.25
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / sort_in_place.pm
index 7c8c40e..25b5892 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 use Params::Util ();
 
-our $VERSION = '1.14';
+our $VERSION = '1.25';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
@@ -16,6 +16,7 @@ with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => {
         qw(
             _maximum_arguments
             _inline_check_arguments
+            _return_value
             )
     ]
 };
@@ -36,9 +37,11 @@ sub _potential_value {
     my ( $self, $slot_access ) = @_;
 
     return
-        "[ \$_[0] ? sort { \$_[0]->( \$a, \$b ) } \@{ $slot_access } : sort \@{ $slot_access} ]";
+        "[ \$_[0] ? sort { \$_[0]->( \$a, \$b ) } \@{ ($slot_access) } : sort \@{ ($slot_access) } ]";
 }
 
+sub _return_value { return q{} }
+
 no Moose::Role;
 
 1;