Subject: | NEXT deprecated |
Catalyst::Runtime 5.80015 gives this warning at startup:
Catalyst::View::Excel::Template::Plus uses NEXT, which is deprecated.
Please see the Class::C3::Adopt::NEXT documentation for details. NEXT
used at ..../Catalyst/View/Excel/Template/Plus.pm line 25
Patch is:
---
/usr/local/perl/5.8.9/lib/site_perl/5.8.9/Catalyst/View/Excel/Template/Plus.pm.orig
2010-01-17 13:36:03.000000000 -0600
+++
/usr/local/perl/5.8.9/lib/site_perl/5.8.9/Catalyst/View/Excel/Template/Plus.pm
2010-01-17 13:36:55.000000000 -0600
@@ -3,7 +3,8 @@
use strict;
use warnings;
-use NEXT;
+use MRO::Compat;
+use mro 'c3';
use Excel::Template::Plus;
use Scalar::Util 'blessed';
@@ -22,7 +23,7 @@
sub new {
my($class, $c, $args) = @_;
- my $self = $class->NEXT::new($c, $args);
+ my $self = $class->next::method($c, $args);
my $config = $c->config->{'View::Excel::Template::Plus'};