From: André Walker Date: Fri, 29 Jul 2011 04:07:43 +0000 (-0300) Subject: undef for accept_context_args is better than [] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4156b7272fd4b82422e6b647eb810bd142e32e30 undef for accept_context_args is better than [] --- diff --git a/lib/Catalyst/IOC/Container.pm b/lib/Catalyst/IOC/Container.pm index 4409816..ebffb92 100644 --- a/lib/Catalyst/IOC/Container.pm +++ b/lib/Catalyst/IOC/Container.pm @@ -629,8 +629,9 @@ sub add_component { default => Catalyst::Utils::class2classsuffix( $component ), }, accept_context_args => { - isa => 'ArrayRef', - default => sub { [] }, + isa => 'ArrayRef|Undef', + required => 0, + default => undef, }, }, )